1
0
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:
Matt Gibson
2025-02-28 09:53:43 -08:00
committed by GitHub
parent 7da329da45
commit 40f7a0d73f
2 changed files with 13 additions and 2 deletions

View File

@@ -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);
}),
);
}),
);