fix: deactivate themes when switching accounts

This commit is contained in:
Mo
2022-02-08 21:51:06 -06:00
parent e43c8a6f07
commit d920bf663f
4 changed files with 4 additions and 10 deletions

View File

@@ -73,6 +73,9 @@ export class WebApplication extends SNApplication {
deinit(source: DeinitSource): void {
super.deinit(source);
try {
if (source === DeinitSource.AppGroupUnload) {
this.getThemeService().deactivateAllThemes();
}
for (const service of Object.values(this.webServices)) {
if ('deinit' in service) {
service.deinit?.(source);