Merge pull request #1088 from pi-hole/location

Be explicit about `window.location`
This commit is contained in:
DL6ER
2019-12-28 16:58:27 +01:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ var dateformat = "MMMM Do YYYY, HH:mm";
// Do we want to filter queries?
var GETDict = {};
location.search.substr(1).split("&").forEach(function(item) {GETDict[item.split("=")[0]] = item.split("=")[1];});
window.location.search.substr(1).split("&").forEach(function(item) {GETDict[item.split("=")[0]] = item.split("=")[1];});
if("from" in GETDict && "until" in GETDict)
{