Skip to content

Commit 9a543b2

Browse files
More logging.
1 parent faedbad commit 9a543b2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/notification/Notification.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,11 @@ const Notification = ({ slot, user, onOpenLeaderboard }) => {
109109

110110
// See if we have any actions
111111
if (event.data.action) {
112-
console.log('[Notification] Action received:', event.data.action, event.data)
112+
console.log(
113+
'[Notification] Action received:',
114+
event.data.action,
115+
event.data
116+
)
113117
switch (event.data.action) {
114118
case 'leaderboard-open':
115119
if (onOpenLeaderboard) {
@@ -143,7 +147,7 @@ const Notification = ({ slot, user, onOpenLeaderboard }) => {
143147
}
144148

145149
// Log or use the received message
146-
// console.log('Received message from child:', event.data, event.origin)
150+
console.log('Received message from child:', event.data, event.origin)
147151
}
148152

149153
// Set up the event listener

0 commit comments

Comments
 (0)