fixed a bug where theme would be randomised when custom is enabled

This commit is contained in:
Jack 2020-08-11 14:55:21 +01:00
parent a6ddadfc69
commit 01a09a4a48

View file

@ -2065,7 +2065,7 @@ function restartTest(withSameWordset = false) {
el = $("#wordsWrapper");
}
if (resultVisible) {
if (config.randomTheme && !pageTransition) {
if (config.randomTheme && !pageTransition && !config.customTheme) {
randomiseTheme();
showNotification(config.theme.replace(/_/g, " "), 1500);
}