mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed hostcontroller and removed an errormessage that appears on channels with one song only
This commit is contained in:
@@ -13,11 +13,12 @@ $(document).ready(function (){
|
||||
'sync disconnect on unload':true,
|
||||
'secure': true
|
||||
};
|
||||
socket = io.connect('https://zoff.no:8880', connection_options);
|
||||
if(window.location.hostname == "zoff.no") add = "https://zoff.no";
|
||||
else add = "localhost";
|
||||
socket = io.connect(add + ':8880', connection_options);
|
||||
id = window.location.pathname.split("/")[1];
|
||||
if(id)
|
||||
{
|
||||
console.log("remote exists");
|
||||
id = id.toLowerCase();
|
||||
Remotecontroller.control();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user