mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-08 22:50:00 +08:00
fixed a bug where a theme name notification would show when not needed
This commit is contained in:
parent
e9cac979f3
commit
8bf682d073
1 changed files with 4 additions and 2 deletions
|
@ -1519,8 +1519,10 @@ function restartTest(withSameWordset = false) {
|
|||
el = $("#words");
|
||||
}
|
||||
if (resultVisible) {
|
||||
if (config.randomTheme) randomiseTheme();
|
||||
showNotification(config.theme.replace("_", " "), 1500);
|
||||
if (config.randomTheme) {
|
||||
randomiseTheme();
|
||||
showNotification(config.theme.replace("_", " "), 1500);
|
||||
}
|
||||
$("#words").stop(true, true).animate(
|
||||
{
|
||||
opacity: 0,
|
||||
|
|
Loading…
Add table
Reference in a new issue