2020-12-23 23:45:47 +03:00
|
|
|
const { init } = String(process.type) === 'main' ? require('@sentry/electron/dist/main') : require('@sentry/electron/dist/renderer')
|
2020-02-05 15:16:31 +03:00
|
|
|
|
|
|
|
const SENTRY_DSN = 'https://4717a0a7ee0b4429bd3a0f06c3d7eec3@sentry.io/181876'
|
2020-12-24 16:03:14 +03:00
|
|
|
let release = null
|
2020-02-05 15:16:31 +03:00
|
|
|
try {
|
|
|
|
release = require('electron').app.getVersion()
|
|
|
|
} catch {
|
2021-03-20 19:12:39 +03:00
|
|
|
release = require('@electron/remote').app.getVersion()
|
2020-02-05 15:16:31 +03:00
|
|
|
}
|
|
|
|
|
2021-06-30 00:57:04 +03:00
|
|
|
if (!process.env.TABBY_DEV) {
|
2020-02-05 15:16:31 +03:00
|
|
|
init({
|
|
|
|
dsn: SENTRY_DSN,
|
|
|
|
release,
|
|
|
|
integrations (integrations) {
|
|
|
|
return integrations.filter(integration => integration.name !== 'Breadcrumbs')
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|