mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Sending chromecast-values again on reconnect
This commit is contained in:
@@ -213,6 +213,9 @@ window.addEventListener("DOMContentLoaded", function() {
|
|||||||
M.Modal.init(document.getElementById("donate"));
|
M.Modal.init(document.getElementById("donate"));
|
||||||
|
|
||||||
socket.on("connect", function(){
|
socket.on("connect", function(){
|
||||||
|
if(chromecastAvailable) {
|
||||||
|
socket.emit("get_id");
|
||||||
|
}
|
||||||
if(connect_error){
|
if(connect_error){
|
||||||
connect_error = false;
|
connect_error = false;
|
||||||
if(offline) {
|
if(offline) {
|
||||||
|
|||||||
Reference in New Issue
Block a user