mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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("");
|
||||
|
||||
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user