Skip to content

Commit

Permalink
Ignore the EventSource() errors
Browse files Browse the repository at this point in the history
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
  • Loading branch information
XhmikosR committed May 29, 2020
1 parent 7304acc commit d55dfc4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/pi-hole/js/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions scripts/pi-hole/js/gravity.js
Original file line number Diff line number Diff line change
Expand Up @@ -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("");
Expand Down
1 change: 1 addition & 0 deletions scripts/pi-hole/js/queryads.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down

0 comments on commit d55dfc4

Please sign in to comment.