1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 06:13:38 +00:00

Deprecated broadcaster (#5461)

This commit is contained in:
Oscar Hinton
2023-05-17 12:27:27 +02:00
committed by GitHub
parent aa2da57139
commit 3da7fc7cb3
3 changed files with 24 additions and 0 deletions

View File

@@ -98,6 +98,12 @@ export class AppComponent implements OnDestroy, OnInit {
window.onkeypress = () => this.recordActivity();
});
/// ############ DEPRECATED ############
/// Please do not use the AppComponent to send events between services.
///
/// Services that depends on other services, should do so through Dependency Injection
/// and subscribe to events through that service observable.
///
this.broadcasterService.subscribe(BroadcasterSubscriptionId, async (message: any) => {
this.ngZone.run(async () => {
switch (message.command) {