diff options
Diffstat (limited to 'packages/main/src/index.ts')
-rw-r--r-- | packages/main/src/index.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/main/src/index.ts b/packages/main/src/index.ts index 2830fa7..ee89f49 100644 --- a/packages/main/src/index.ts +++ b/packages/main/src/index.ts | |||
@@ -41,6 +41,7 @@ import osName from 'os-name'; | |||
41 | 41 | ||
42 | import { | 42 | import { |
43 | DEVMODE_ALLOWED_URL_PREFIXES, | 43 | DEVMODE_ALLOWED_URL_PREFIXES, |
44 | enableStacktraceSourceMaps, | ||
44 | installDevToolsExtensions, | 45 | installDevToolsExtensions, |
45 | openDevToolsWhenReady, | 46 | openDevToolsWhenReady, |
46 | } from './devTools'; | 47 | } from './devTools'; |
@@ -55,11 +56,14 @@ const log = getLogger('index'); | |||
55 | // Always enable sandboxing. | 56 | // Always enable sandboxing. |
56 | app.enableSandbox(); | 57 | app.enableSandbox(); |
57 | 58 | ||
58 | // Use alternative directory when debugging to avoid clobbering the main installation. | ||
59 | if (isDevelopment) { | 59 | if (isDevelopment) { |
60 | // Use alternative directory when debugging to avoid clobbering the main installation. | ||
60 | app.setPath('userData', `${app.getPath('userData')}-dev`); | 61 | app.setPath('userData', `${app.getPath('userData')}-dev`); |
62 | ensureDirSync(app.getPath('userData')); | ||
63 | |||
64 | // Use source maps in stack traces. | ||
65 | enableStacktraceSourceMaps(); | ||
61 | } | 66 | } |
62 | ensureDirSync(app.getPath('userData')); | ||
63 | 67 | ||
64 | // Only allow a single instance at a time. | 68 | // Only allow a single instance at a time. |
65 | const isSingleInstance = app.requestSingleInstanceLock(); | 69 | const isSingleInstance = app.requestSingleInstanceLock(); |