fixed a bug where a theme name notification would show when not needed

This commit is contained in:
Jack 2020-07-17 01:20:26 +01:00
parent e9cac979f3
commit 8bf682d073

View file

@ -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,