mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
Some more IE compatibility tricks
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
var exact = "";
|
||||
|
||||
function eventsource() {
|
||||
var ta = $("#output");
|
||||
var domain = $("#domain");
|
||||
@@ -8,6 +9,13 @@ function eventsource() {
|
||||
return;
|
||||
}
|
||||
|
||||
// IE does not support EventSource - exit early
|
||||
if (typeof EventSource !== "function") {
|
||||
ta.show();
|
||||
ta.html("Querying ad lists is not supported with this browser!");
|
||||
return;
|
||||
}
|
||||
|
||||
var quiet = false;
|
||||
if(q.val() === "yes")
|
||||
{
|
||||
@@ -69,4 +77,4 @@ $("#btnSearch").on("click", function() {
|
||||
$("#btnSearchExact").on("click", function() {
|
||||
exact = "exact";
|
||||
eventsource();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user