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
1a8a6a2f
Commit
1a8a6a2f
authored
Jan 16, 2018
by
yPhil
Browse files
Merge branch 'ui' into dev
parents
1921337e
88c7b10c
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/lib/js/sync.js
View file @
1a8a6a2f
...
...
@@ -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
"
,
""
);
}
MOB
.
tab
.
populate
(
JSON
.
parse
(
MOB
.
prefs
.
readConfig
(
'
tabs
'
)));
}
})
.
catch
((
err
)
=>
{
MOB
.
tab
.
populate
(
JSON
.
parse
(
MOB
.
prefs
.
readConfig
(
'
tabs
'
)));
console
.
error
(
'
Petrolette | Validation error:
'
,
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
'
)));
}
else
{
localStorage
.
setItem
(
"
tabs
"
,
""
);
}
});
},
...
...
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