1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 17:23:37 +00:00

onDestroy needed for broadcast subscriptions

This commit is contained in:
Chad Scharf
2020-11-04 14:00:44 -05:00
parent c9c6a11390
commit 97e982bf01
7 changed files with 40 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
import {
Component,
OnDestroy,
OnInit,
NgZone,
} from '@angular/core';
@@ -41,6 +42,10 @@ export class ExportComponent extends BaseExportComponent implements OnInit {
});
}
ngOnDestroy() {
this.broadcasterService.unsubscribe(BroadcasterSubscriptionId);
}
onWindowHidden() {
this.showPassword = false;
}