fix: ensure no migration when using new profiles
(cherry picked from commit c9b5de7529875e565897135b4ccd5b10965cd701)
This commit is contained in:
@@ -221,11 +221,13 @@ export const WaterfoxGlue = {
|
|||||||
"browser.migration.version",
|
"browser.migration.version",
|
||||||
128
|
128
|
||||||
);
|
);
|
||||||
|
const waterfoxUIVersion = 1;
|
||||||
|
|
||||||
const waterfoxUIVersion = lazy.PrefUtils.get(
|
if (!Services.prefs.prefHasUserValue("browser.migration.waterfox_version")) {
|
||||||
"browser.migration.waterfox_version",
|
// This is a new profile, nothing to migrate.
|
||||||
0
|
Services.prefs.setIntPref("browser.migration.waterfox_version", waterfoxUIVersion);
|
||||||
);
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
async function enableTheme(id) {
|
async function enableTheme(id) {
|
||||||
const addon = await lazy.AddonManager.getAddonByID(id);
|
const addon = await lazy.AddonManager.getAddonByID(id);
|
||||||
|
|||||||
Reference in New Issue
Block a user