Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yPhil
Pétrolette
Commits
76b9faa3
Commit
76b9faa3
authored
Jan 15, 2018
by
yPhil
Browse files
Merge branch 'ui' into dev
parents
2fbd0713
23596592
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/lib/js/sync.js
View file @
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);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment