Forgot remote was on subdomain

This commit is contained in:
Kasper Rynning-Tønnesen
2016-02-10 17:26:03 +01:00
parent 7507f8736e
commit 16dd0218fd
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ $(document).ready(function (){
'sync disconnect on unload':true,
'secure': true
};
if(window.location.hostname == "zoff.no") add = "https://zoff.no";
if(window.location.hostname == "remote.zoff.no") add = "https://zoff.no";
else add = "localhost";
socket = io.connect(add + ':8880', connection_options);
id = window.location.pathname.split("/")[1];