Commit bcbb94d1 authored by yPhil's avatar yPhil
Browse files

Merge branch 'dev'

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