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 <xhmikosr@gmail.com>
This commit is contained in:
XhmikosR
2020-05-29 16:54:01 +03:00
parent 7304acc0b9
commit e7eb4bef9d
3 changed files with 3 additions and 0 deletions

View File

@@ -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

View File

@@ -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("");

View File

@@ -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
);