mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
Parse web push payload JSON (#13594)
This commit is contained in:
@@ -124,7 +124,9 @@ class MyWebPushConnector implements WebPushConnector {
|
||||
return this.webPushApiService.putSubscription(subscription.toJSON());
|
||||
}).pipe(
|
||||
switchMap(() => this.pushEvent$),
|
||||
map((e) => new NotificationResponse(e.data.json().data)),
|
||||
map((e) => {
|
||||
return new NotificationResponse(e.data.json().data);
|
||||
}),
|
||||
);
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user