mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +00:00
fixed remotecontroller
This commit is contained in:
2
static/dist/main.min.js
vendored
2
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -49,9 +49,9 @@ var Hostcontroller = {
|
|||||||
|
|
||||||
window.history.pushState("object or string", "Title", "/"+chan.toLowerCase());
|
window.history.pushState("object or string", "Title", "/"+chan.toLowerCase());
|
||||||
}else if(arr[0] == "pause")
|
}else if(arr[0] == "pause")
|
||||||
ytplayer.pauseVideo()
|
Youtube.ytplayer.pauseVideo()
|
||||||
else if(arr[0] == "play")
|
else if(arr[0] == "play")
|
||||||
ytplayer.playVideo();
|
YouTubeytplayer.playVideo();
|
||||||
else if(arr[0] == "skip")
|
else if(arr[0] == "skip")
|
||||||
List.skip();
|
List.skip();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ function init(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
chan = $("#chan").html();
|
chan = $("#chan").html();
|
||||||
if(window.location.hostname == "zoff.no") add = "https://zoff.no";
|
if(window.location._name == "zoff.no") add = "https://zoff.no";
|
||||||
else add = "localhost";
|
else add = "localhost";
|
||||||
socket = io.connect(''+add+':8880', connection_options);
|
socket = io.connect(''+add+':8880', connection_options);
|
||||||
|
|
||||||
@@ -128,7 +128,7 @@ function init(){
|
|||||||
}else{
|
}else{
|
||||||
Chat.setup_chat_listener(chan);
|
Chat.setup_chat_listener(chan);
|
||||||
Chat.allchat_listener();
|
Chat.allchat_listener();
|
||||||
Hostcontroller.host_listener();
|
if(!window.mobilecheck()) Hostcontroller.host_listener();
|
||||||
window.onYouTubeIframeAPIReady = Youtube.onYouTubeIframeAPIReady;
|
window.onYouTubeIframeAPIReady = Youtube.onYouTubeIframeAPIReady;
|
||||||
Youtube.loadPlayer();
|
Youtube.loadPlayer();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user