From e7eb4bef9dff09d7a8d2ebf492ab8fbc798ddcd4 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 29 May 2020 16:54:01 +0300 Subject: [PATCH] Ignore the `EventSource()` errors We have code checking for the presence of this, so it's OK to ignore these errors. Signed-off-by: XhmikosR --- scripts/pi-hole/js/debug.js | 1 + scripts/pi-hole/js/gravity.js | 1 + scripts/pi-hole/js/queryads.js | 1 + 3 files changed, 3 insertions(+) diff --git a/scripts/pi-hole/js/debug.js b/scripts/pi-hole/js/debug.js index 501aad13..bf5609d1 100644 --- a/scripts/pi-hole/js/debug.js +++ b/scripts/pi-hole/js/debug.js @@ -29,6 +29,7 @@ function eventsource() { return; } + // eslint-disable-next-line compat/compat var source = new EventSource("scripts/pi-hole/php/debug.php?&token=" + token + "&" + checked); // Reset and show field diff --git a/scripts/pi-hole/js/gravity.js b/scripts/pi-hole/js/gravity.js index 3c9dbbcc..04d08619 100644 --- a/scripts/pi-hole/js/gravity.js +++ b/scripts/pi-hole/js/gravity.js @@ -17,6 +17,7 @@ function eventsource() { return; } + // eslint-disable-next-line compat/compat var source = new EventSource("scripts/pi-hole/php/gravity.sh.php"); ta.html(""); diff --git a/scripts/pi-hole/js/queryads.js b/scripts/pi-hole/js/queryads.js index 2c2db313..6fb340c7 100644 --- a/scripts/pi-hole/js/queryads.js +++ b/scripts/pi-hole/js/queryads.js @@ -52,6 +52,7 @@ function eventsource() { return; } + // eslint-disable-next-line compat/compat var source = new EventSource( "scripts/pi-hole/php/queryads.php?domain=" + domain.toLowerCase() + "&" + exact );