From 07836b00b52f922a889d0ea57144d505e8e92207 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 11 Sep 2023 21:50:14 +0300 Subject: Removes previously locally stored settings Applies them "on the fly" --- src/js/arching-kaos-web-ui-settings.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/js/arching-kaos-web-ui-settings.js b/src/js/arching-kaos-web-ui-settings.js index a8901f5..1e6a008 100644 --- a/src/js/arching-kaos-web-ui-settings.js +++ b/src/js/arching-kaos-web-ui-settings.js @@ -56,14 +56,16 @@ var default_settings = { // with the settings above. // // if ( window.localStorage.getItem("ak-settings") === null ) { - window.localStorage.setItem("ak-settings", JSON.stringify(default_settings)) +// window.localStorage.setItem("ak-settings", JSON.stringify(default_settings)); // } -var activeSettings = JSON.parse(window.localStorage.getItem("ak-settings")); +// var activeSettings = JSON.parse(window.localStorage.getItem("ak-settings")); // // All comments above are replaced by temporary initializing without saving // anything in the localStorage +var activeSettings = default_settings; // Also, remove any settings stored from previous runs +window.localStorage.removeItem("ak-settings"); // Full functionality for Stellar intergration, requires clearnet connection // However, we have other ways of running the WEB-UI, eg locally or via a -- cgit v1.2.3