From d5b977b5ff0d54400bffd34ddb028941ecb11f74 Mon Sep 17 00:00:00 2001 From: Jack Date: Thu, 14 May 2020 22:30:25 +0100 Subject: [PATCH] saved the theme list to a variable --- public/js/commandline.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/js/commandline.js b/public/js/commandline.js index 2431c77c4..52745f4b0 100644 --- a/public/js/commandline.js +++ b/public/js/commandline.js @@ -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),