Skip to content
Snippets Groups Projects
Commit da4c8bd2 authored by didierfred's avatar didierfred
Browse files

correct bug in load config

parent 45aa3e96
No related branches found
No related tags found
No related merge requests found
......@@ -15,11 +15,13 @@ let started = 'off';
let debug_mode = false;
loadFromBrowserStorage(['config','started'],function(result) {
config = result.config;
// if old storage method
if (config===undefined) loadConfigurationFromLocalStorage();
else started = result.started;
// if old storage method
if (result.config===undefined) loadConfigurationFromLocalStorage();
else {
started = result.started;
config = JSON.parse(result.config);
}
if (started==='on') {
addListener();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment