Fixed remote for https://

This commit is contained in:
Kasper Rynning-Tønnesen
2015-11-29 17:30:36 +01:00
parent 23b602b9e9
commit 25dca1f77d
3 changed files with 8 additions and 4 deletions

View File

@@ -9,7 +9,11 @@ window.mobilecheck = function() {
$(document).ready(function (){
document.title = "Zöff Remote";
setTimeout(function(){$("#search").focus();},500);
socket = io.connect('//'+window.location.hostname+':8880');
var connection_options = {
'sync disconnect on unload':true,
'secure': true
};
socket = io.connect('https://zoff.no:8880', connection_options);
id = window.location.pathname.split("/")[1];
if(id)
{