mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
handle desktop ngOnDestroy()
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user