From b2f9fd02117f7301b61e0436cb52453ac34f6a91 Mon Sep 17 00:00:00 2001 From: Linus Date: Mon, 18 Nov 2019 11:40:26 +0100 Subject: [PATCH] Remove remaining absolute paths Signed-off-by: Linus --- scripts/pi-hole/js/debug.js | 4 ++-- scripts/pi-hole/js/queryads.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/pi-hole/js/debug.js b/scripts/pi-hole/js/debug.js index 0a6b3ab1..5498f5fa 100644 --- a/scripts/pi-hole/js/debug.js +++ b/scripts/pi-hole/js/debug.js @@ -38,12 +38,12 @@ function eventsource() { // IE does not support EventSource - load whole content at once if (typeof EventSource !== "function") { - httpGet(ta,"/admin/scripts/pi-hole/php/debug.php?IE&token="+token+"&"+checked); + httpGet(ta,"scripts/pi-hole/php/debug.php?IE&token="+token+"&"+checked); return; } var host = window.location.host; - var source = new EventSource("/admin/scripts/pi-hole/php/debug.php?&token="+token+"&"+checked); + var source = new EventSource("scripts/pi-hole/php/debug.php?&token="+token+"&"+checked); // Reset and show field ta.empty(); diff --git a/scripts/pi-hole/js/queryads.js b/scripts/pi-hole/js/queryads.js index b86a0309..583bfa12 100644 --- a/scripts/pi-hole/js/queryads.js +++ b/scripts/pi-hole/js/queryads.js @@ -74,12 +74,12 @@ function eventsource() { // IE does not support EventSource - load whole content at once if (typeof EventSource !== "function") { - httpGet(ta,quiet,"/admin/scripts/pi-hole/php/queryads.php?domain="+domain.toLowerCase()+exact+"&IE"); + httpGet(ta,quiet,"scripts/pi-hole/php/queryads.php?domain="+domain.toLowerCase()+exact+"&IE"); return; } var host = window.location.host; - var source = new EventSource("/admin/scripts/pi-hole/php/queryads.php?domain="+domain.toLowerCase()+"&"+exact); + var source = new EventSource("scripts/pi-hole/php/queryads.php?domain="+domain.toLowerCase()+"&"+exact); // Reset and show field ta.empty();