Skip to content

Commit 5c3e40a

Browse files
Removed logging
1 parent 9a543b2 commit 5c3e40a

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/components/notification/Notification.js

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

110110
// See if we have any actions
111111
if (event.data.action) {
112-
console.log(
113-
'[Notification] Action received:',
114-
event.data.action,
115-
event.data
116-
)
117112
switch (event.data.action) {
118113
case 'leaderboard-open':
119114
if (onOpenLeaderboard) {
@@ -129,10 +124,7 @@ const Notification = ({ slot, user, onOpenLeaderboard }) => {
129124

130125
// Redirect to a specified URL.
131126
case 'redirect':
132-
console.log('[Notification] Redirect action received')
133-
console.log('[Notification] URL:', event.data.url)
134127
if (event.data.url) {
135-
console.log('[Notification] Redirecting to:', event.data.url)
136128
// eslint-disable-next-line no-undef
137129
window.location.href = event.data.url
138130
} else {
@@ -147,7 +139,7 @@ const Notification = ({ slot, user, onOpenLeaderboard }) => {
147139
}
148140

149141
// Log or use the received message
150-
console.log('Received message from child:', event.data, event.origin)
142+
// console.log('Received message from child:', event.data, event.origin)
151143
}
152144

153145
// Set up the event listener

0 commit comments

Comments
 (0)