try to prevent the need to click "toggle anthem" twice

pull/83/head
Aevann1 2022-12-19 21:17:23 +02:00
parent b229c06cab
commit 1f110e471e
1 changed files with 8 additions and 2 deletions

View File

@ -8,8 +8,14 @@ if (u_username)
audio.loop=true;
function toggle() {
if (audio.paused) audio.play()
else audio.pause()
if (audio.paused) {
audio.play();
audio.play();
}
else {
audio.pause();
audio.pause();
}
}
audio.play();