mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-24 12:06:15 +01:00
always set on subscribe
This commit is contained in:
parent
640c44820a
commit
1f98a2ebcb
@ -17,10 +17,6 @@ export class BroadcasterService implements BroadcasterServiceAbstraction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
subscribe(id: string, messageCallback: (message: any) => any) {
|
subscribe(id: string, messageCallback: (message: any) => any) {
|
||||||
if (this.subscribers.has(id)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.subscribers.set(id, messageCallback);
|
this.subscribers.set(id, messageCallback);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user