Update browserslistc

Aligns better with what's actually supported

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
XhmikosR
2025-03-12 17:58:08 +02:00
parent ffdffbc262
commit 4c6b927cd3
4 changed files with 22 additions and 41 deletions

View File

@@ -10,20 +10,11 @@ function eventsource() {
var alSuccess = $("#alSuccess");
var ta = $("#output");
// https://caniuse.com/fetch - everything except IE
// This is fine, as we dropped support for IE a while ago
if (typeof fetch !== "function") {
ta.show();
ta.html("Updating lists of ad-serving domains is not supported with this browser!");
return;
}
ta.html("");
ta.show();
alInfo.show();
alSuccess.hide();
// eslint-disable-next-line compat/compat
fetch("/api/action/gravity", {
method: "POST",
headers: { "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content") },