1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

handle desktop ngOnDestroy()

This commit is contained in:
rr-bw
2024-09-11 10:33:03 -07:00
parent 167b246112
commit e3219d2766

View File

@@ -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();
}