Release Vulpes OS 2.7-preview.24

This commit is contained in:
OverSu 2026-11-04 12:52:20 +01:00
commit 97ef99f827
135 changed files with 7717 additions and 2524 deletions

View file

@ -44,7 +44,13 @@
},
init: function() {
var revisionString = localStorage.getItem(this.revisionName);
var revisionString;
try {
revisionString = localStorage.getItem(this.revisionName);
} catch (e) {
// The shell may deny partitioned localStorage; IndexedDB remains usable.
console.error('Homescreen datastore revision unavailable:', e);
}
if (revisionString) {
this.lastRevision = JSON.parse(revisionString);
}
@ -187,8 +193,12 @@
updateRevision: function() {
this.lastRevision = this.datastore.revisionId;
localStorage.setItem(this.revisionName,
JSON.stringify(this.lastRevision));
try {
localStorage.setItem(this.revisionName,
JSON.stringify(this.lastRevision));
} catch (e) {
console.error('Homescreen datastore revision could not be saved:', e);
}
},
onChange: function(e) {

View file

@ -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);
}
}
};