Skip to content

Commit c72c678

Browse files
Narrow Sentry insertBefore filter
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
1 parent d64243f commit c72c678

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/workshop-app/app/utils/monitoring.client.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ export function init() {
143143
typeof value.value === 'string' &&
144144
/Cannot read properties of null \(reading 'insertBefore'\)/.test(
145145
value.value,
146+
) &&
147+
value.stacktrace?.frames?.some((frame) =>
148+
frame.filename?.includes('media-chrome'),
146149
),
147150
) ?? false
148151
if (insertBeforeNullError) return null

0 commit comments

Comments
 (0)