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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user