fixed theme always randomising

This commit is contained in:
Jack 2020-08-19 16:33:56 +01:00
parent 629f948f87
commit 7d5807d7d1

View file

@ -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);
}