mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
update antibot script
This commit is contained in:
parent
bf6ac77bda
commit
0ae3739e99
1 changed files with 5 additions and 5 deletions
|
|
@ -117,7 +117,7 @@
|
|||
init() {
|
||||
window.addEventListener("DOMContentLoaded", () => {
|
||||
// Set default values and fetch
|
||||
updateDataDOM();
|
||||
this.updateDataDOM();
|
||||
this.updateAlert("fetch");
|
||||
|
||||
fetch("/antibot", {
|
||||
|
|
@ -182,11 +182,11 @@
|
|||
this.alertEl.classList.remove("bg-green-500");
|
||||
this.alertEl.classList.add("bg-red-500");
|
||||
}
|
||||
// Hide alert after an amount of time
|
||||
|
||||
this.alertEl.classList.remove("hidden");
|
||||
setTimeout(() => {
|
||||
this.alertEl.classList.add("hidden");
|
||||
}, 5000);
|
||||
|
||||
if (type !== "fetch")
|
||||
setTimeout(() => this.alertEl.classList.add("hidden"), 5000);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue