Commit 88c7b10c authored by yPhil's avatar yPhil
Browse files

SYS: No sources strategy WIP

parent b3ec2801
......@@ -67,15 +67,27 @@ MOB.sync = (function() {
} else {
console.error('Petrolette | Validation NOT OK: Default sources');
console.error('Petrolette | Validation NOT OK: Tryin browser cache');
if (MOB.prefs.isValidSourcesFile(JSON.parse(MOB.prefs.readConfig('tabs')))) {
console.log('plop');
MOB.tab.populate(JSON.parse(MOB.prefs.readConfig('tabs')));
} else {
localStorage.setItem("tabs", "");
}
}
})
.catch((err) => {
// console.error('Petrolette | Validation err:', err);
if (MOB.prefs.isValidSourcesFile(JSON.parse(MOB.prefs.readConfig('tabs')))) {
MOB.tab.populate(JSON.parse(MOB.prefs.readConfig('tabs')));
console.error('Petrolette | Validation error:', err);
} else {
localStorage.setItem("tabs", "");
}
});
},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment