Remove isBrave Sentry flag (#8967)

feature/default_network_editable
Whymarrh Whitby 4 years ago committed by GitHub
parent c6d9416944
commit 46a6027a4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      app/scripts/lib/setupSentry.js

@ -10,8 +10,6 @@ const SENTRY_DSN_DEV = 'https://f59f3dd640d2429d9d0e2445a87ea8e1@sentry.io/27349
export default function setupSentry ({ release }) {
let sentryTarget
// detect brave
const isBrave = Boolean(window.chrome.ipcRenderer)
if (METAMASK_DEBUG || process.env.IN_TEST) {
console.log(`Setting up Sentry Remote Error Reporting for '${METAMASK_ENVIRONMENT}': SENTRY_DSN_DEV`)
@ -33,10 +31,6 @@ export default function setupSentry ({ release }) {
beforeSend: (report) => rewriteReport(report),
})
Sentry.configureScope((scope) => {
scope.setExtra('isBrave', isBrave)
})
function rewriteReport (report) {
try {
// simplify certain complex error messages (e.g. Ethjs)

Loading…
Cancel
Save