mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-20 14:17:30 +09:00
Issue #991 Part 8: Toolkit everything else
This commit is contained in:
parent
e309515e66
commit
a24456a76d
16 changed files with 62 additions and 216 deletions
|
|
@ -119,18 +119,14 @@ LinksStorage.prototype = {
|
|||
|
||||
get _storedVersion() {
|
||||
if (this.__storedVersion === undefined) {
|
||||
try {
|
||||
this.__storedVersion =
|
||||
Services.prefs.getIntPref("browser.newtabpage.storageVersion");
|
||||
} catch (ex) {
|
||||
// The storage version is unknown, so either:
|
||||
// - it's a new profile
|
||||
// - it's a profile where versioning information got lost
|
||||
// In this case we still run through all of the valid migrations,
|
||||
// starting from 1, as if it was a downgrade. As previously stated the
|
||||
// migrations should already support running on an updated store.
|
||||
this.__storedVersion = 1;
|
||||
}
|
||||
// The storage version is unknown, so either:
|
||||
// - it's a new profile
|
||||
// - it's a profile where versioning information got lost
|
||||
// In this case we still run through all of the valid migrations,
|
||||
// starting from 1, as if it was a downgrade. As previously stated the
|
||||
// migrations should already support running on an updated store.
|
||||
this.__storedVersion =
|
||||
Services.prefs.getIntPref("browser.newtabpage.storageVersion", 1);
|
||||
}
|
||||
return this.__storedVersion;
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue