mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
feat: Changed migration version to v2, b=no-bug, c=common
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
class nsZenUIMigration {
|
||||
PREF_NAME = 'zen.ui.migration.version';
|
||||
MIGRATION_VERSION = 1;
|
||||
MIGRATION_VERSION = 2;
|
||||
|
||||
init(isNewProfile) {
|
||||
if (!isNewProfile) {
|
||||
@@ -57,6 +57,9 @@ class nsZenUIMigration {
|
||||
);
|
||||
const theme = Services.prefs.getIntPref('layout.css.prefers-color-scheme.content-override', 0);
|
||||
Services.prefs.setIntPref('zen.view.window.scheme', theme);
|
||||
}
|
||||
|
||||
_migrateV2() {
|
||||
Services.prefs.setIntPref('zen.theme.gradient-legacy-version', 0);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user