Forgot we are using https instead of http now

This commit is contained in:
Kasper Rynning-Tønnesen
2015-06-11 16:28:57 +02:00
parent 5a69e31b73
commit 49b254d057

View File

@@ -4,7 +4,7 @@ var id;
$(document).ready(function (){ $(document).ready(function (){
setTimeout(function(){$("#code-input").focus();},500); setTimeout(function(){$("#code-input").focus();},500);
socket = io.connect('http://'+window.location.hostname+':3000'); socket = io.connect('https://'+window.location.hostname+':3000');
id = window.location.pathname.split("/")[2]; id = window.location.pathname.split("/")[2];
if(id) if(id)
{ {
@@ -42,7 +42,7 @@ function control()
start = false; start = false;
$(".rc").css("display", "block"); $(".rc").css("display", "block");
document.getElementById("base").setAttribute("onsubmit", "control(); return false;"); document.getElementById("base").setAttribute("onsubmit", "control(); return false;");
$("#remote-text").text("Controlling "+ id.toUpperCase()) $("#remote-text").text("Controlling "+ id.toUpperCase())
document.getElementById("search").setAttribute("length", "18"); document.getElementById("search").setAttribute("length", "18");
@@ -70,4 +70,4 @@ function control()
$("#search").val(""); $("#search").val("");
} }
} }