mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-05-06 20:00:12 +00:00
require sentry only if dsn is available
This commit is contained in:
parent
732f2bb53d
commit
0510110a87
1 changed files with 1 additions and 1 deletions
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
const React = require('react');
|
||||
const ReactDOM = require('react-dom');
|
||||
const Sentry = require('@sentry/browser');
|
||||
const App = require('./App');
|
||||
|
||||
if (typeof process.env.SENTRY_DSN === 'string') {
|
||||
const Sentry = require('@sentry/browser');
|
||||
Sentry.init({ dsn: process.env.SENTRY_DSN });
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue