@@ -72,23 +72,25 @@ export function getRouter() {
7272
7373 // Check if this is an ad script error we want to suppress
7474 const frames = event . exception ?. values ?. [ 0 ] ?. stacktrace ?. frames || [ ]
75-
75+
7676 // More robust filename checking - check all frames for ad script patterns
77- const hasAdScriptFrame = frames . length > 0 && frames . some ( ( frame ) => {
78- const filename = frame . filename || ''
79- // Normalize filename to handle both absolute URLs and relative paths
80- const normalizedFilename = filename . toLowerCase ( )
81- return (
82- normalizedFilename . includes ( '/media/native/' ) ||
83- normalizedFilename . includes ( 'fuse.js' ) ||
84- normalizedFilename . includes ( 'fuseplatform.net' ) ||
85- normalizedFilename . includes ( '/nobid/blocking_script.js' ) ||
86- normalizedFilename . includes ( 'blocking_script.js' ) ||
87- // Check function name patterns from nobid script
88- frame . function === 'BQ' ||
89- frame . function === 'Navigation.<anonymous>'
90- )
91- } )
77+ const hasAdScriptFrame =
78+ frames . length > 0 &&
79+ frames . some ( ( frame ) => {
80+ const filename = frame . filename || ''
81+ // Normalize filename to handle both absolute URLs and relative paths
82+ const normalizedFilename = filename . toLowerCase ( )
83+ return (
84+ normalizedFilename . includes ( '/media/native/' ) ||
85+ normalizedFilename . includes ( 'fuse.js' ) ||
86+ normalizedFilename . includes ( 'fuseplatform.net' ) ||
87+ normalizedFilename . includes ( '/nobid/blocking_script.js' ) ||
88+ normalizedFilename . includes ( 'blocking_script.js' ) ||
89+ // Check function name patterns from nobid script
90+ frame . function === 'BQ' ||
91+ frame . function === 'Navigation.<anonymous>'
92+ )
93+ } )
9294
9395 // Check for specific error messages from ad scripts
9496 const hasExpectedErrorMessage =
0 commit comments