diff options
author | 2020-01-31 20:32:24 +0100 | |
---|---|---|
committer | 2020-01-31 20:32:24 +0100 | |
commit | c2a8dce24722528928d8e107bdf5f123138a1bf2 (patch) | |
tree | 79a33528d9545f5221d0931ff0d5150f7ed65eff /src/index.js | |
parent | Merge pull request #336 from getferdi/l10n_develop (diff) | |
download | ferdium-app-c2a8dce24722528928d8e107bdf5f123138a1bf2.tar.gz ferdium-app-c2a8dce24722528928d8e107bdf5f123138a1bf2.tar.zst ferdium-app-c2a8dce24722528928d8e107bdf5f123138a1bf2.zip |
Change Sentry reporting to be opt-in only
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js index 7bc0be0ea..46230abd6 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -39,7 +39,6 @@ import handleDeepLink from './electron/deepLinking'; | |||
39 | import { isPositionValid } from './electron/windowUtils'; | 39 | import { isPositionValid } from './electron/windowUtils'; |
40 | import { appId } from './package.json'; // eslint-disable-line import/no-unresolved | 40 | import { appId } from './package.json'; // eslint-disable-line import/no-unresolved |
41 | import './electron/exception'; | 41 | import './electron/exception'; |
42 | import './sentry'; | ||
43 | 42 | ||
44 | import { | 43 | import { |
45 | DEFAULT_APP_SETTINGS, | 44 | DEFAULT_APP_SETTINGS, |
@@ -80,6 +79,11 @@ if (isWindows) { | |||
80 | const settings = new Settings('app', DEFAULT_APP_SETTINGS); | 79 | const settings = new Settings('app', DEFAULT_APP_SETTINGS); |
81 | const proxySettings = new Settings('proxy'); | 80 | const proxySettings = new Settings('proxy'); |
82 | 81 | ||
82 | if (settings.get('sentry')) { | ||
83 | // eslint-disable-next-line global-require | ||
84 | require('./sentry'); | ||
85 | } | ||
86 | |||
83 | // add `liftSingleInstanceLock` to settings.json to override the single instance lock | 87 | // add `liftSingleInstanceLock` to settings.json to override the single instance lock |
84 | const liftSingleInstanceLock = settings.get('liftSingleInstanceLock') || false; | 88 | const liftSingleInstanceLock = settings.get('liftSingleInstanceLock') || false; |
85 | 89 | ||