Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Set the protocol and domain ourselves.
Browse files Browse the repository at this point in the history
  • Loading branch information
parisminton committed Nov 21, 2017
1 parent adb5b73 commit 464b1e3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ function timestamp () {
+ addZero(d.getSeconds()) + '_';
}

var pre_pro = window.location.protocol,
pre_host = window.location.host;

d3.json("/settings/labels.json", function(err, labels){
d3.json(pre_pro + "//" + pre_host + "/settings/labels.json", function(err, labels){

// Populate labels menu
d3.select("#input-label")
Expand All @@ -45,7 +47,7 @@ d3.json("/settings/labels.json", function(err, labels){

}); // end label ingestion

d3.json("/settings/themes.json", function(err, themes){
d3.json(pre_pro + "//" + pre_host + "/settings/themes.json", function(err, themes){

var errorMessage;

Expand Down

0 comments on commit 464b1e3

Please sign in to comment.