mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-11 06:05:16 +08:00
fixed theme always randomising
This commit is contained in:
parent
629f948f87
commit
7d5807d7d1
1 changed files with 5 additions and 1 deletions
|
@ -2170,7 +2170,11 @@ function restartTest(withSameWordset = false) {
|
|||
el = $("#wordsWrapper");
|
||||
}
|
||||
if (resultVisible) {
|
||||
if (config.randomTheme && !pageTransition && !config.customTheme) {
|
||||
if (
|
||||
config.randomTheme !== "off" &&
|
||||
!pageTransition &&
|
||||
!config.customTheme
|
||||
) {
|
||||
randomiseTheme();
|
||||
showNotification(config.theme.replace(/_/g, " "), 1500);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue