mirror of
https://github.com/bitwarden/browser.git
synced 2025-03-12 13:39:14 +01:00
handle desktop ngOnDestroy()
This commit is contained in:
parent
167b246112
commit
e3219d2766
@ -143,6 +143,11 @@ export class LoginComponentV2 implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
ngOnDestroy(): void {
|
||||
if (this.clientType === ClientType.Desktop) {
|
||||
// TODO-rr-bw: refactor to not use deprecated broadcaster service.
|
||||
this.broadcasterService.unsubscribe(BroadcasterSubscriptionId);
|
||||
}
|
||||
|
||||
this.destroy$.next();
|
||||
this.destroy$.complete();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user