mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-19 09:59:54 +00:00
.github
app
assets
lib
app.ts
bufferizedPTY.js
cli.ts
config.ts
index.ts
lru.ts
pluginManager.ts
portable.ts
pty.ts
sentry.ts
window.ts
src
dev-app-update.yml
index.pug
package.json
tsconfig.json
tsconfig.main.json
webpack.config.js
webpack.main.config.js
yarn.lock
build
docs
extras
scripts
snap
terminus-community-color-schemes
terminus-core
terminus-plugin-manager
terminus-serial
terminus-settings
terminus-ssh
terminus-terminal
terminus-uac
.all-contributorsrc
.eslintrc.yml
.gitignore
.mergify.yml
.pug-lintrc.js
.travis.yml
CODE_OF_CONDUCT.md
HACKING.md
LICENSE
README.md
appveyor.yml
electron-builder.yml
package.json
tsconfig.json
typedoc.js
webpack.config.js
webpack.plugin.config.js
yarn.lock
20 lines
595 B
TypeScript
Executable File
20 lines
595 B
TypeScript
Executable File
const { init } = String(process.type) === 'main' ? require('@sentry/electron/dist/main') : require('@sentry/electron/dist/renderer')
|
|
|
|
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 (!process.env.TERMINUS_DEV) {
|
|
init({
|
|
dsn: SENTRY_DSN,
|
|
release,
|
|
integrations (integrations) {
|
|
return integrations.filter(integration => integration.name !== 'Breadcrumbs')
|
|
},
|
|
})
|
|
}
|