Skip to content

Commit d38750c

Browse files
Dean SoferDean Sofer
authored andcommitted
Change notification click target
1 parent 06f259c commit d38750c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/firebase-messaging-sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ self.addEventListener('notificationclick', event => {
4141
console.log('Service Worker: Notification clicked.', event.notification);
4242
event.notification.close();
4343

44-
const friend = event.notification.data.friend; // This is opponent's UID, used for URL path
44+
const friend = event.notification.data.player; // This is opponent's UID, used for URL path
4545
// const gameId = event.notification.data.gameId; // Game's unique key, if needed for other logic
4646
// const moveId = event.notification.data.moveId; // Move was removed when notification was shown
4747

0 commit comments

Comments
 (0)