@ -8,8 +8,7 @@ const METAMASK_ENVIRONMENT = process.env.METAMASK_ENVIRONMENT
const SENTRY _DSN _PROD = 'https://3567c198f8a8412082d32655da2961d0@sentry.io/273505'
const SENTRY _DSN _PROD = 'https://3567c198f8a8412082d32655da2961d0@sentry.io/273505'
const SENTRY _DSN _DEV = 'https://f59f3dd640d2429d9d0e2445a87ea8e1@sentry.io/273496'
const SENTRY _DSN _DEV = 'https://f59f3dd640d2429d9d0e2445a87ea8e1@sentry.io/273496'
export default function setupSentry ( opts ) {
export default function setupSentry ( { release } ) {
const { release , getState } = opts
let sentryTarget
let sentryTarget
// detect brave
// detect brave
const isBrave = Boolean ( window . chrome . ipcRenderer )
const isBrave = Boolean ( window . chrome . ipcRenderer )
@ -44,11 +43,6 @@ export default function setupSentry (opts) {
simplifyErrorMessages ( report )
simplifyErrorMessages ( report )
// modify report urls
// modify report urls
rewriteReportUrls ( report )
rewriteReportUrls ( report )
// append app state
if ( getState ) {
const appState = getState ( )
report . extra . appState = appState
}
} catch ( err ) {
} catch ( err ) {
console . warn ( err )
console . warn ( err )
}
}