aboutsummaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-09-11 21:50:14 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-09-11 21:50:14 +0300
commit07836b00b52f922a889d0ea57144d505e8e92207 (patch)
treed97a060ce81494f429b41529cd9d3801f3dd0b78 /src/js
parent51916b06b3c534d55882f95a60f071329e41d909 (diff)
downloadarching-kaos-web-ui-07836b00b52f922a889d0ea57144d505e8e92207.tar.gz
arching-kaos-web-ui-07836b00b52f922a889d0ea57144d505e8e92207.tar.bz2
arching-kaos-web-ui-07836b00b52f922a889d0ea57144d505e8e92207.zip
Removes previously locally stored settings
Applies them "on the fly"
Diffstat (limited to 'src/js')
-rw-r--r--src/js/arching-kaos-web-ui-settings.js6
1 files 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