Skip to content

Commit e8ddd8b

Browse files
committed
Add await to onBackgroundMessage callback
1 parent 086df7c commit e8ddd8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/messaging/src/listeners/sw-listeners.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export async function onPush(
9696
const payload = externalizePayload(internalPayload);
9797

9898
if (typeof messaging.onBackgroundMessageHandler === 'function') {
99-
messaging.onBackgroundMessageHandler(payload);
99+
await messaging.onBackgroundMessageHandler(payload);
100100
} else {
101101
messaging.onBackgroundMessageHandler.next(payload);
102102
}

0 commit comments

Comments
 (0)