We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3491f18 commit c3cb1beCopy full SHA for c3cb1be
src/paths/paths.ts
@@ -31,12 +31,12 @@ export function getTypeScriptCachePath(): string {
31
export function getUserDataPath(): string {
32
const electron = getElectron();
33
34
- // When running in Electron and app is ready
35
- if (process.env.NODE_ENV !== "development" && electron) {
36
- return electron!.app.getPath("userData");
+ // When running in Electron
+ if (electron) {
+ return electron.app.getPath("userData");
37
}
38
39
- // For development or when the Electron app object isn't available
+ // When the Electron app object isn't available
40
return path.resolve("./userData");
41
42
0 commit comments