Changed urls of remote

This commit is contained in:
Kasper Rynning-Tønnesen
2015-11-29 14:07:13 +01:00
parent d2ec2793e2
commit ac474cfc17
8 changed files with 8 additions and 205 deletions

View File

@@ -15,7 +15,7 @@ var Hostcontroller = {
began = false;
old_id = id;
}
var codeURL = "http://"+window.location.hostname+"/remote/"+id;
var codeURL = "http://remote."+window.location.hostname+"/"+id;
$("#code-text").text(id)
$("#code-qr").attr("src", "https://chart.googleapis.com/chart?chs=221x221&cht=qr&choe=UTF-8&chld=L|1&chl="+codeURL);
$("#code-link").attr("href", codeURL);

View File

@@ -90,7 +90,7 @@ var Remotecontroller = {
if(!id)
{
id = document.getElementById("remoteform").chan.value;
window.history.pushState("object or string", "Title", "/remote/"+id);
window.history.pushState("object or string", "Title", "/"+id);
}
document.getElementById("remoteform").chan.value = "";
start = false;