ultrawidify/res/settings/js/settings.js

28 lines
428 B
JavaScript
Raw Normal View History

2018-12-01 00:50:22 +01:00
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();