diff --git a/res/settings/js/settings.js b/res/settings/js/settings.js index e69de29..78f95d6 100644 --- a/res/settings/js/settings.js +++ b/res/settings/js/settings.js @@ -0,0 +1,28 @@ +if(Debug.debug) + console.log("[settings.js] loading settings script!"); + +// document.getElementById("uw-version").textContent = browser.runtime.getManifest().version; + +var settings = new Settings(undefined, () => updateConfig()); + +function updateConfig() { + loadConfig(); +} + +function loadConfig() { + loadActions(); +} + + + + + + +// setup: + +async function initSettings() { + await settings.init(); + loadConfig(); +} + +initSettings(); \ No newline at end of file diff --git a/res/settings/js/settingsvars.js b/res/settings/js/settingsvars.js index 47824e7..f5a8a02 100644 --- a/res/settings/js/settingsvars.js +++ b/res/settings/js/settingsvars.js @@ -40,7 +40,7 @@ var ui = { // Customization settings customization: { - actionList: BaseElement.fromExisting(document.getElementById('_customization_actions')), + actionList: BaseElement.fromExisting(document.getElementById('_customization_action_list')), actionItems: [], } } diff --git a/res/settings/settings.html b/res/settings/settings.html index 44b8f43..b99bde7 100644 --- a/res/settings/settings.html +++ b/res/settings/settings.html @@ -230,9 +230,13 @@ + + - - + + + +