mirror of
https://github.com/pi-hole/web.git
synced 2025-12-22 03:38:29 +00:00
Be explicit about window.location
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user