diff --git a/src/js/commandline-lists.js b/src/js/commandline-lists.js index 404054e3a..bd8edf35a 100644 --- a/src/js/commandline-lists.js +++ b/src/js/commandline-lists.js @@ -61,7 +61,7 @@ if (Object.keys(layouts).length > 0) { }); } -let commandsKeymapLayouts = { +export let commandsKeymapLayouts = { title: "Change keymap layout...", list: [ { @@ -413,7 +413,7 @@ let commandsDifficulty = { ], }; -let commandsEnableAds = { +export let commandsEnableAds = { title: "Set enable ads...", list: [ { @@ -1117,7 +1117,7 @@ let commandsPageWidth = { ], }; -let themeCommands = { +export let themeCommands = { title: "Change theme...", list: [], }; diff --git a/src/js/commandline.js b/src/js/commandline.js index ac2dca1f1..cef4c12d9 100644 --- a/src/js/commandline.js +++ b/src/js/commandline.js @@ -498,6 +498,6 @@ $(document).keydown((e) => { }); $(document).on("click", "#commandLineMobileButton", () => { - CommandlineLists.setCurrent(CommandlineLists.defaultCommands); + CommandlineLists.setCurrent([CommandlineLists.defaultCommands]); show(); }); diff --git a/src/js/test/keymap.js b/src/js/test/keymap.js index 0cad08015..1839c727e 100644 --- a/src/js/test/keymap.js +++ b/src/js/test/keymap.js @@ -246,6 +246,6 @@ export function refreshKeys(layout) { } $(document).on("click", ".keymap .r5 #KeySpace", (e) => { - CommandlineLists.setCurrent(CommandlineLists.commandsKeymapLayouts); + CommandlineLists.setCurrent([CommandlineLists.commandsKeymapLayouts]); Commandline.show(); }); diff --git a/src/js/ui.js b/src/js/ui.js index 1b24d7417..16a6b634a 100644 --- a/src/js/ui.js +++ b/src/js/ui.js @@ -249,7 +249,7 @@ $(document).on("click", "#bottom .leftright .right .current-theme", (e) => { // if (Config.customTheme) { // toggleCustomTheme(); // } - CommandlineLists.setCurrent(CommandlineLists.themeCommands); + CommandlineLists.setCurrent([CommandlineLists.themeCommands]); Commandline.show(); } });