mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Changed urls of remote
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user