@@ -284,8 +284,6 @@ export class WebCompat extends ContentFeature {
284284 return ;
285285 }
286286
287- console . log ( '[webNotificationsFix] Starting - will override Notification API' ) ;
288- console . log ( '[webNotificationsFix] Current Notification exists:' , ! ! globalThis . Notification ) ;
289287 // eslint-disable-next-line @typescript-eslint/no-this-alias
290288 const feature = this ;
291289
@@ -331,7 +329,6 @@ export class WebCompat extends ContentFeature {
331329 * @returns {'default' | 'denied' | 'granted' }
332330 */
333331 static get permission ( ) {
334- console . log ( '[webNotificationsFix] permission getter called, returning' , permission ) ;
335332 return permission ;
336333 }
337334
@@ -340,18 +337,14 @@ export class WebCompat extends ContentFeature {
340337 * @returns {Promise<NotificationPermission> }
341338 */
342339 static async requestPermission ( deprecatedCallback ) {
343- console . log ( '[webNotificationsFix] requestPermission called' ) ;
344340 try {
345341 const result = await nativeRequest ( 'requestPermission' , { } ) ;
346- console . log ( '[webNotificationsFix] requestPermission result from native:' , result ) ;
347- const resultPermission = result ?. permission || permission ;
348- console . log ( '[webNotificationsFix] requestPermission returning:' , resultPermission ) ;
342+ const resultPermission = /** @type {NotificationPermission } */ ( result ?. permission || permission ) ;
349343 if ( deprecatedCallback ) {
350344 deprecatedCallback ( resultPermission ) ;
351345 }
352346 return resultPermission ;
353347 } catch ( e ) {
354- console . log ( '[webNotificationsFix] requestPermission error:' , e ) ;
355348 if ( deprecatedCallback ) {
356349 deprecatedCallback ( permission ) ;
357350 }
@@ -454,8 +447,6 @@ export class WebCompat extends ContentFeature {
454447 configurable : true ,
455448 enumerable : true ,
456449 } ) ;
457-
458- console . log ( '[webNotificationsFix] Polyfill installed. Notification.permission:' , globalThis . Notification . permission ) ;
459450 }
460451
461452 cleanIframeValue ( ) {
0 commit comments