Skip to content

Commit 75ca256

Browse files
authored
Disable account switcher (#5594)
* Disable account switcher * migrate * await
1 parent 08b7681 commit 75ca256

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

lib/core/migrate/migrate.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,11 @@ const migrations = [
851851
versions.sort((a, b) => a.localeCompare(b, undefined, { numerical: true }));
852852
await Storage.set('highestVersion', versions.slice(-1)[0] || null); await firstRunStorage.deleteMultiple(versions);
853853
},
854+
}, {
855+
versionNumber: '5.24.9-disable-accountSwitcher',
856+
async go() {
857+
await Modules.setEnabled('accountSwitcher', false);
858+
},
854859
},
855860

856861
]; // ^^ Add new migrations ^^

lib/modules/accountSwitcher.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export const module: Module<*> = new Module('accountSwitcher');
2525
module.moduleName = 'accountSwitcherName';
2626
module.category = 'myAccountCategory';
2727
module.description = 'accountSwitcherDesc';
28+
module.disabledByDefault = true;
2829
module.options = {
2930
keepLoggedIn: {
3031
type: 'boolean',

0 commit comments

Comments
 (0)