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

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