Skip to content

Commit

Permalink
Fix missing Sentry global package
Browse files Browse the repository at this point in the history
  • Loading branch information
ghivert committed Dec 1, 2024
1 parent dfd0913 commit 6a9b62d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/frontend/src/gloogle.ffi.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ export function scrollTo(id) {
export function captureMessage(content) {
const isDev = !!import.meta.env.DEV
if (isDev) return content
const isSentryDefined = typeof Sentry !== 'undefined'
const canCaptureMessage = Sentry?.captureMessage === 'function'
if (isSentryDefined && canCaptureMessage) Sentry.captureMessage(content)
if (typeof Sentry !== 'undefined' && Sentry?.captureMessage === 'function')
Sentry.captureMessage(content)
return content
}

Expand Down

0 comments on commit 6a9b62d

Please sign in to comment.