diff options
author | 2019-02-11 14:43:31 +0100 | |
---|---|---|
committer | 2019-02-11 14:43:31 +0100 | |
commit | c128a9b8469e876803f6f501ca1685607740c068 (patch) | |
tree | 2a96d73f637580d23716efd7511d5b1c63372537 /src/index.js | |
parent | Add option to login via deep link (diff) | |
download | ferdium-app-c128a9b8469e876803f6f501ca1685607740c068.tar.gz ferdium-app-c128a9b8469e876803f6f501ca1685607740c068.tar.zst ferdium-app-c128a9b8469e876803f6f501ca1685607740c068.zip |
Update electron-window-state
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/index.js b/src/index.js index 8d3b04845..494fa97f1 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -4,24 +4,23 @@ import { | |||
4 | shell, | 4 | shell, |
5 | ipcMain, | 5 | ipcMain, |
6 | } from 'electron'; | 6 | } from 'electron'; |
7 | import isDevMode from 'electron-is-dev'; | ||
7 | import fs from 'fs-extra'; | 8 | import fs from 'fs-extra'; |
8 | import path from 'path'; | 9 | import path from 'path'; |
9 | import windowStateKeeper from 'electron-window-state'; | 10 | import windowStateKeeper from 'electron-window-state'; |
10 | 11 | ||
12 | // Set app directory before loading user modules | ||
13 | if (isDevMode) { | ||
14 | app.setPath('userData', path.join(app.getPath('appData'), 'FranzDev')); | ||
15 | } | ||
16 | |||
17 | /* eslint-disable import/first */ | ||
11 | import { | 18 | import { |
12 | isDevMode, | ||
13 | isMac, | 19 | isMac, |
14 | isWindows, | 20 | isWindows, |
15 | isLinux, | 21 | isLinux, |
16 | } from './environment'; | 22 | } from './environment'; |
17 | |||
18 | import { mainIpcHandler as basicAuthHandler } from './features/basicAuth'; | 23 | import { mainIpcHandler as basicAuthHandler } from './features/basicAuth'; |
19 | |||
20 | // DEV MODE: Save user data into FranzDev | ||
21 | if (isDevMode) { | ||
22 | app.setPath('userData', path.join(app.getPath('appData'), 'FranzDev')); | ||
23 | } | ||
24 | /* eslint-disable import/first */ | ||
25 | import ipcApi from './electron/ipc-api'; | 24 | import ipcApi from './electron/ipc-api'; |
26 | import Tray from './lib/Tray'; | 25 | import Tray from './lib/Tray'; |
27 | import Settings from './electron/Settings'; | 26 | import Settings from './electron/Settings'; |