mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-10 16:48:40 +08:00
saved the theme list to a variable
This commit is contained in:
parent
3ea018650e
commit
4d6bce05bd
1 changed files with 2 additions and 0 deletions
|
@ -233,9 +233,11 @@ let commandsTimeConfig = {
|
|||
]
|
||||
};
|
||||
|
||||
let themesList;
|
||||
|
||||
$.getJSON("themes/list.json", function(data) {
|
||||
commandsThemes.list = [];
|
||||
themesList = data;
|
||||
data.forEach(theme => {
|
||||
commandsThemes.list.push({
|
||||
id: "changeTheme" + capitalizeFirstLetter(theme),
|
||||
|
|
Loading…
Add table
Reference in a new issue