mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-10 21:53:13 +08:00
fixed sounds loading too late
This commit is contained in:
parent
e5412e5892
commit
804c02680e
1 changed files with 1 additions and 0 deletions
|
@ -239,6 +239,7 @@ function setPlaySoundOnClick(val, nosave) {
|
|||
val = "off";
|
||||
}
|
||||
config.playSoundOnClick = val;
|
||||
if (clickSounds === null && config.playSoundOnClick !== "off") initClickSounds();
|
||||
if (!nosave) saveConfigToCookie();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue