aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.js
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2020-01-31 20:32:24 +0100
committerLibravatar vantezzen <hello@vantezzen.io>2020-01-31 20:32:24 +0100
commitc2a8dce24722528928d8e107bdf5f123138a1bf2 (patch)
tree79a33528d9545f5221d0931ff0d5150f7ed65eff /src/index.js
parentMerge pull request #336 from getferdi/l10n_develop (diff)
downloadferdium-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.js6
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';
39import { isPositionValid } from './electron/windowUtils'; 39import { isPositionValid } from './electron/windowUtils';
40import { appId } from './package.json'; // eslint-disable-line import/no-unresolved 40import { appId } from './package.json'; // eslint-disable-line import/no-unresolved
41import './electron/exception'; 41import './electron/exception';
42import './sentry';
43 42
44import { 43import {
45 DEFAULT_APP_SETTINGS, 44 DEFAULT_APP_SETTINGS,
@@ -80,6 +79,11 @@ if (isWindows) {
80const settings = new Settings('app', DEFAULT_APP_SETTINGS); 79const settings = new Settings('app', DEFAULT_APP_SETTINGS);
81const proxySettings = new Settings('proxy'); 80const proxySettings = new Settings('proxy');
82 81
82if (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
84const liftSingleInstanceLock = settings.get('liftSingleInstanceLock') || false; 88const liftSingleInstanceLock = settings.get('liftSingleInstanceLock') || false;
85 89