mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-02 18:17:46 +01:00
add error handling to runtime.background messaging (#8949)
This commit is contained in:
parent
6ae086f89a
commit
3282b9b775
@ -85,7 +85,11 @@ export default class RuntimeBackground {
|
|||||||
this.messageListener.allMessages$
|
this.messageListener.allMessages$
|
||||||
.pipe(
|
.pipe(
|
||||||
mergeMap(async (message: any) => {
|
mergeMap(async (message: any) => {
|
||||||
await this.processMessage(message);
|
try {
|
||||||
|
await this.processMessage(message);
|
||||||
|
} catch (err) {
|
||||||
|
this.logService.error(err);
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.subscribe();
|
.subscribe();
|
||||||
|
Loading…
Reference in New Issue
Block a user