Fix for link to remote

This commit is contained in:
Kasper Rynning-Tønnesen
2015-11-29 14:15:03 +01:00
parent 85f383733c
commit 453c3658a3
3 changed files with 5 additions and 4 deletions

View File

@@ -10,9 +10,10 @@ $(document).ready(function (){
document.title = "Zöff Remote";
setTimeout(function(){$("#search").focus();},500);
socket = io.connect('//'+window.location.hostname+':8880');
id = window.location.pathname.split("/")[2];
id = window.location.pathname.split("/")[1];
if(id)
{
console.log("remote exists");
id = id.toLowerCase();
Remotecontroller.control();
}