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

@@ -106,7 +106,7 @@ function autofilter(){
$(document).ready(function() {
// 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];});
var APIstring = "api.php?getAllQueries";