Skip to content

Commit

Permalink
Fixed a bug within graph2 where the path debugging variable could not…
Browse files Browse the repository at this point in the history
… be used due to inconsistent trailing slash expectations in the ajax calls
  • Loading branch information
yngndrw committed Jun 5, 2020
1 parent dc6fd28 commit d37aed7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions SD/graph2.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ var refreshTimer;
var refresh = false;
var selectedunitcolor = "#00a1d8"; // Color to be used for selected unit

var path = ""; //https://" + location.host; // + "/"; // used to call home
var path = ""; //https://" + location.host; // used to call home
// path = "http://iotawatt.local"; // Temp: Local development (Can use the following Chrome extension to allow remote Ajax calls: https://chrome.google.com/webstore/detail/allow-cors-access-control/lhobafahddgcelffkeicbaginigeejlf?hl=en)

//*********************************************************************************************
// Predefined reporting periods that can be selected
Expand Down Expand Up @@ -794,7 +795,7 @@ function query() {

var request =
path +
"query?format=json&header=yes&resolution=high&missing=null" +
"/query?format=json&header=yes&resolution=high&missing=null" +
"&begin=" +
begin +
"&end=" +
Expand Down

0 comments on commit d37aed7

Please sign in to comment.