Fixed hostcontroller and removed an errormessage that appears on channels with one song only

This commit is contained in:
Kasper Rynning-Tønnesen
2016-02-10 13:03:34 +01:00
parent f6ce377161
commit f1f265a69c
8 changed files with 20 additions and 15 deletions

View File

@@ -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();
}