diff options
author | 2020-02-21 17:06:47 +0100 | |
---|---|---|
committer | 2020-02-21 17:06:47 +0100 | |
commit | 5d36215319d5037a38cb8b4499233465918d4523 (patch) | |
tree | 549cbf0d3814a4204e7e549f2a18fbf76fb82e49 /src/index.js | |
parent | Improve bug report template (diff) | |
download | ferdium-app-5d36215319d5037a38cb8b4499233465918d4523.tar.gz ferdium-app-5d36215319d5037a38cb8b4499233465918d4523.tar.zst ferdium-app-5d36215319d5037a38cb8b4499233465918d4523.zip |
Replace deprecated call to getName, use name instead
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/index.js b/src/index.js index 46230abd6..167d3897a 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -14,15 +14,15 @@ if (process.env.FERDI_APPDATA_DIR != null) { | |||
14 | app.setPath('appData', process.env.FERDI_APPDATA_DIR); | 14 | app.setPath('appData', process.env.FERDI_APPDATA_DIR); |
15 | app.setPath('userData', path.join(app.getPath('appData'))); | 15 | app.setPath('userData', path.join(app.getPath('appData'))); |
16 | } else if (process.env.PORTABLE_EXECUTABLE_DIR != null) { | 16 | } else if (process.env.PORTABLE_EXECUTABLE_DIR != null) { |
17 | app.setPath('appData', process.env.PORTABLE_EXECUTABLE_DIR, `${app.getName()}AppData`); | 17 | app.setPath('appData', process.env.PORTABLE_EXECUTABLE_DIR, `${app.name}AppData`); |
18 | app.setPath('userData', path.join(app.getPath('appData'), `${app.getName()}AppData`)); | 18 | app.setPath('userData', path.join(app.getPath('appData'), `${app.name}AppData`)); |
19 | } else if (process.platform === 'win32') { | 19 | } else if (process.platform === 'win32') { |
20 | app.setPath('appData', process.env.APPDATA); | 20 | app.setPath('appData', process.env.APPDATA); |
21 | app.setPath('userData', path.join(app.getPath('appData'), app.getName())); | 21 | app.setPath('userData', path.join(app.getPath('appData'), app.name)); |
22 | } | 22 | } |
23 | 23 | ||
24 | if (isDevMode) { | 24 | if (isDevMode) { |
25 | app.setPath('userData', path.join(app.getPath('appData'), `${app.getName()}Dev`)); | 25 | app.setPath('userData', path.join(app.getPath('appData'), `${app.name}Dev`)); |
26 | } | 26 | } |
27 | 27 | ||
28 | /* eslint-disable import/first */ | 28 | /* eslint-disable import/first */ |