Commit bcbb94d1 authored by yPhil's avatar yPhil
Browse files

Merge branch 'dev'

parents ca4c40d2 76b9faa3
......@@ -62,15 +62,21 @@ MOB.sync = (function() {
.then((data) => {
if (MOB.prefs.isValidSourcesFile(JSON.parse(data))) {
console.error('Petrolette | Validation OK');
return MOB.tab.populate(JSON.parse(data));
} else {
console.error('Petrolette | Validation NOT OK: Default sources');
MOB.tab.populate(JSON.parse(MOB.prefs.readConfig('tabs')));
}
})
.catch((err) => {
console.error('Validation error:', err);
console.error('Petrolette | Validation error:', err);
});
} else {
......@@ -89,7 +95,7 @@ MOB.sync = (function() {
console.info('Petrolette | Writing to remote storage OK');
})
.catch((err) => {
console.error('Validation error:', err);
console.error('Petrolette | Validation error:', err);
});
// localStorage.setItem(key, val);
......
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