1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-22 19:23:52 +00:00

Handle main window hide

This commit is contained in:
Chad Scharf
2020-10-29 16:35:09 -04:00
parent be95ee9328
commit d8d1ee3022
8 changed files with 33 additions and 13 deletions

View File

@@ -22,6 +22,8 @@ import { SyncService } from 'jslib/abstractions/sync.service';
import { LoginComponent as BaseLoginComponent } from 'jslib/angular/components/login.component';
import { ModalComponent } from 'jslib/angular/components/modal.component';
import { BroadcasterService } from 'jslib/angular/services/broadcaster.service';
@Component({
selector: 'app-login',
templateUrl: 'login.component.html',
@@ -35,9 +37,10 @@ export class LoginComponent extends BaseLoginComponent {
syncService: SyncService, private componentFactoryResolver: ComponentFactoryResolver,
platformUtilsService: PlatformUtilsService, stateService: StateService,
environmentService: EnvironmentService, passwordGenerationService: PasswordGenerationService,
cryptoFunctionService: CryptoFunctionService, storageService: StorageService) {
cryptoFunctionService: CryptoFunctionService, storageService: StorageService,
broadcasterService: BroadcasterService) {
super(authService, router, platformUtilsService, i18nService, stateService, environmentService,
passwordGenerationService, cryptoFunctionService, storageService);
passwordGenerationService, cryptoFunctionService, broadcasterService, storageService);
super.onSuccessfulLogin = () => {
return syncService.fullSync(true);
};