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
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue