forked from rDrama/rDrama
1
0
Fork 0

minor js fix

master
Aevann1 2022-12-16 22:17:23 +02:00
parent b6c01fb275
commit c861e6e389
1 changed files with 4 additions and 1 deletions

View File

@ -100,7 +100,10 @@ function postToastSwitch(t, url, button1, button2, cls, extraActionsOnSuccess, m
} else {
try {
document.getElementById(button1).classList.toggle(cls);
document.getElementById(button2).classList.toggle(cls);
}
catch (e) {}
try {
document.getElementById(button2).classList.toggle(cls);
}
catch (e) {}
}