Fixed error with remote

This commit is contained in:
Kasper Rynning-Tønnesen
2015-06-14 02:51:50 +02:00
parent 28bd070b98
commit a4bb62afb0
4 changed files with 8 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ var id;
$(document).ready(function (){
setTimeout(function(){$("#code-input").focus();},500);
socket = io.connect('https://'+window.location.hostname+':3000');
socket = io.connect('//'+window.location.hostname+':3000');
id = window.location.pathname.split("/")[2];
if(id)
{