Fix prefer-global-this error

Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
yubiuser
2024-12-07 16:11:35 +01:00
parent b7b9227b3a
commit e7f97baab1
12 changed files with 26 additions and 26 deletions

View File

@@ -94,14 +94,14 @@ $("#GETTeleporter").on("click", function () {
success: function (data, status, xhr) {
var a = document.createElement("a");
// eslint-disable-next-line compat/compat
var url = window.URL.createObjectURL(data);
var url = globalThis.URL.createObjectURL(data);
a.href = url;
a.download = xhr.getResponseHeader("Content-Disposition").match(/filename="([^"]*)"/)[1];
document.body.append(a);
a.click();
a.remove();
// eslint-disable-next-line compat/compat
window.URL.revokeObjectURL(url);
globalThis.URL.revokeObjectURL(url);
},
});
});