From 01a09a4a4862bfbfc8008553e6b04594741a5df3 Mon Sep 17 00:00:00 2001 From: Jack Date: Tue, 11 Aug 2020 14:55:21 +0100 Subject: [PATCH] fixed a bug where theme would be randomised when custom is enabled --- public/js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/script.js b/public/js/script.js index cbd35e20c..34b73d247 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -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); }