saved the theme list to a variable

This commit is contained in:
Jack 2020-05-14 22:30:25 +01:00
parent 3ea018650e
commit 4d6bce05bd

View file

@ -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),