mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-03 12:29:46 +08:00
removed nausea from random themes
This commit is contained in:
parent
8bf682d073
commit
a1c165b407
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue