Release Vulpes OS 2.7-preview.24
This commit is contained in:
parent
49572b6b45
commit
97ef99f827
135 changed files with 7717 additions and 2524 deletions
|
|
@ -82,7 +82,15 @@
|
|||
}
|
||||
|
||||
// Restore existing settings
|
||||
var settingsString = localStorage.getItem('settings');
|
||||
var settingsString;
|
||||
try {
|
||||
settingsString = localStorage.getItem('settings');
|
||||
} catch (e) {
|
||||
// Firefox partitions storage when Gaia is hosted in the desktop shell.
|
||||
// Keep launching the home screen with defaults if that storage is denied.
|
||||
console.error('Home screen local settings unavailable:', e);
|
||||
return;
|
||||
}
|
||||
if (!settingsString) {
|
||||
this.firstRun = true;
|
||||
return;
|
||||
|
|
@ -105,11 +113,15 @@
|
|||
|
||||
Settings.prototype = {
|
||||
save: function() {
|
||||
localStorage.setItem('settings', JSON.stringify({
|
||||
version: SETTINGS_VERSION,
|
||||
small: this.small,
|
||||
scrollSnapping: this.scrollSnapping
|
||||
}));
|
||||
try {
|
||||
localStorage.setItem('settings', JSON.stringify({
|
||||
version: SETTINGS_VERSION,
|
||||
small: this.small,
|
||||
scrollSnapping: this.scrollSnapping
|
||||
}));
|
||||
} catch (e) {
|
||||
console.error('Home screen settings could not be saved:', e);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue