forked from rDrama/rDrama
1
0
Fork 0

am i retarded?

master
Aevann 2023-03-09 22:31:13 +02:00
parent bc15c7248e
commit 693e882eec
1 changed files with 2 additions and 1 deletions

View File

@ -99,6 +99,8 @@ for (const element of TH) {
function disable_btn(t) { function disable_btn(t) {
if (!t.classList.contains('disabled')) { if (!t.classList.contains('disabled')) {
t.classList.add('disabled');
setTimeout(() => { setTimeout(() => {
t.disabled = true; t.disabled = true;
}, 0.0000000000000000001); }, 0.0000000000000000001);
@ -108,7 +110,6 @@ function disable_btn(t) {
t.disabled = false; t.disabled = false;
}, 2000); }, 2000);
} }
t.classList.add('disabled');
} }
function register_new_elements(e) { function register_new_elements(e) {