Skip to content

Commit

Permalink
demos: Change to relative URL for cross-domain connections
Browse files Browse the repository at this point in the history
  • Loading branch information
s-macke committed Oct 16, 2015
1 parent e969123 commit 053d7e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions demos/compile.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ <h3>About</h3>
statsid: "stats", // object id for the statistics test
relayURL: "", // relay url for the network
userid: userid, // unique user id string. Empty, choosen randomly, from a url, or from a cookie.
syncURL: "https://jor1k.com/sync/upload.php", // url to sync a certain folder
syncURL: "//jor1k.com/sync/upload.php", // url to sync a certain folder
fps: 10, // update interval of framebuffer
memorysize: 32, // in MB, must be a power of two
path: "../sys/or1k/",
Expand All @@ -170,7 +170,7 @@ <h3>About</h3>
if (params[i].substr(0,4) == "user") {
userid = params[i].split('=')[1];
jor1kparameters.userid = userid;
jor1kparameters.fs.lazyloadimages.push("https://jor1k.com/sync/tarballs/"+userid+".tar.bz2");
jor1kparameters.fs.lazyloadimages.push("//jor1k.com/sync/tarballs/"+userid+".tar.bz2");
}
if (params[i].substr(0,3) == "cpu") {
jor1kparameters.system.cpu = params[i].split('=')[1];
Expand Down
4 changes: 2 additions & 2 deletions demos/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ <h3>Donate</h3>
fps: 10, // update interval of framebuffer
relayURL: "wss://relay.widgetry.org/", // relay url for the network
userid: userid, // unique user id string. Empty, choosen randomly, from a url, or from a cookie.
syncURL: "https://jor1k.com/sync/upload.php", // url to sync a certain folder
syncURL: "//jor1k.com/sync/upload.php", // url to sync a certain folder
path: "../sys/or1k/",
}

Expand All @@ -206,7 +206,7 @@ <h3>Donate</h3>
if (params[i].substr(0,4) == "user") {
userid = params[i].split('=')[1];
jor1kparameters.userid = userid;
jor1kparameters.fs.lazyloadimages.push("https://jor1k.com/sync/tarballs/"+userid+".tar.bz2");
jor1kparameters.fs.lazyloadimages.push("//jor1k.com/sync/tarballs/"+userid+".tar.bz2");
}
if (params[i].substr(0,3) == "cpu") {
jor1kparameters.system.cpu = params[i].split('=')[1];
Expand Down

0 comments on commit 053d7e4

Please sign in to comment.