From a1c165b40777053f2ad54a71859f876f5f4aae01 Mon Sep 17 00:00:00 2001 From: Jack Date: Fri, 17 Jul 2020 01:34:44 +0100 Subject: [PATCH] removed nausea from random themes --- public/js/userconfig.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/js/userconfig.js b/public/js/userconfig.js index 99bdde49f..005e1134d 100644 --- a/public/js/userconfig.js +++ b/public/js/userconfig.js @@ -552,7 +552,10 @@ function setTheme(name, nosave) { } function randomiseTheme() { - let randomtheme = themesList[Math.floor(Math.random() * themesList.length)]; + var randomList = themesList.filter(function (theme) { + return theme.name != "nausea"; + }); + let randomtheme = randomList[Math.floor(Math.random() * randomList.length)]; setTheme(randomtheme.name, true); }