1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

re-set favicon state on unlock/login

This commit is contained in:
Kyle Spearrin
2019-07-02 08:26:33 -04:00
parent ded5ace0de
commit af8274247b
4 changed files with 14 additions and 7 deletions

View File

@@ -4,6 +4,7 @@ import { Router } from '@angular/router';
import { AuthService } from 'jslib/abstractions/auth.service';
import { I18nService } from 'jslib/abstractions/i18n.service';
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
import { StateService } from 'jslib/abstractions/state.service';
import { StorageService } from 'jslib/abstractions/storage.service';
import { SyncService } from 'jslib/abstractions/sync.service';
@@ -16,8 +17,9 @@ import { LoginComponent as BaseLoginComponent } from 'jslib/angular/components/l
export class LoginComponent extends BaseLoginComponent {
constructor(authService: AuthService, router: Router,
platformUtilsService: PlatformUtilsService, i18nService: I18nService,
syncService: SyncService, storageService: StorageService) {
super(authService, router, platformUtilsService, i18nService, storageService);
syncService: SyncService, storageService: StorageService,
stateService: StateService) {
super(authService, router, platformUtilsService, i18nService, storageService, stateService);
super.onSuccessfulLogin = () => {
return syncService.fullSync(true);
};