gns3-web-ui/sentry.js

16 lines
308 B
JavaScript
Raw Normal View History

2018-04-03 12:35:41 +00:00
const { SentryClient } = require('@sentry/electron');
var fs = require('fs');
2018-04-03 12:35:41 +00:00
const DSN =
'https://cb7b474b2e874afb8e400c47d1452ecc:7876224cbff543d992cb0ac4021962f8@sentry.io/1040940';
const isDev = () => {
return fs.existsSync('.git');
};
if (!isDev()) {
SentryClient.create({
dsn: DSN
});
}