mirror of
https://github.com/Eugeny/tabby
synced 2024-11-15 09:27:24 +00:00
21 lines
617 B
TypeScript
Executable file
21 lines
617 B
TypeScript
Executable file
const { init } = String(process.type) === 'main' ? require('@sentry/electron/dist/main') : require('@sentry/electron/dist/renderer')
|
|
import * as isDev from 'electron-is-dev'
|
|
|
|
|
|
const SENTRY_DSN = 'https://4717a0a7ee0b4429bd3a0f06c3d7eec3@sentry.io/181876'
|
|
let release = null
|
|
try {
|
|
release = require('electron').app.getVersion()
|
|
} catch {
|
|
release = require('electron').remote.app.getVersion()
|
|
}
|
|
|
|
if (!isDev) {
|
|
init({
|
|
dsn: SENTRY_DSN,
|
|
release,
|
|
integrations (integrations) {
|
|
return integrations.filter(integration => integration.name !== 'Breadcrumbs')
|
|
},
|
|
})
|
|
}
|