diff options
author | 2019-10-06 15:36:01 +0200 | |
---|---|---|
committer | 2019-10-06 15:36:01 +0200 | |
commit | ef6fbfbd0821a98ff167aaa5f31f522877cf94b1 (patch) | |
tree | b7b5265b899f8d09a65bc83e949fbc397df76235 /src/electron | |
parent | Add option to choose hibernation strategy (diff) | |
download | ferdium-app-ef6fbfbd0821a98ff167aaa5f31f522877cf94b1.tar.gz ferdium-app-ef6fbfbd0821a98ff167aaa5f31f522877cf94b1.tar.zst ferdium-app-ef6fbfbd0821a98ff167aaa5f31f522877cf94b1.zip |
Add Electron Process Manager
Diffstat (limited to 'src/electron')
-rw-r--r-- | src/electron/ipc-api/index.js | 2 | ||||
-rw-r--r-- | src/electron/ipc-api/processManager.js | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/electron/ipc-api/index.js b/src/electron/ipc-api/index.js index be8e0815a..3b7f31e4b 100644 --- a/src/electron/ipc-api/index.js +++ b/src/electron/ipc-api/index.js | |||
@@ -2,10 +2,12 @@ import autoUpdate from './autoUpdate'; | |||
2 | import settings from './settings'; | 2 | import settings from './settings'; |
3 | import appIndicator from './appIndicator'; | 3 | import appIndicator from './appIndicator'; |
4 | import download from './download'; | 4 | import download from './download'; |
5 | import processManager from './processManager'; | ||
5 | 6 | ||
6 | export default (params) => { | 7 | export default (params) => { |
7 | settings(params); | 8 | settings(params); |
8 | autoUpdate(params); | 9 | autoUpdate(params); |
9 | appIndicator(params); | 10 | appIndicator(params); |
10 | download(params); | 11 | download(params); |
12 | processManager(params); | ||
11 | }; | 13 | }; |
diff --git a/src/electron/ipc-api/processManager.js b/src/electron/ipc-api/processManager.js new file mode 100644 index 000000000..7197a2708 --- /dev/null +++ b/src/electron/ipc-api/processManager.js | |||
@@ -0,0 +1,8 @@ | |||
1 | import { ipcMain } from 'electron'; | ||
2 | import { openProcessManager } from 'electron-process-manager'; | ||
3 | |||
4 | export default () => { | ||
5 | ipcMain.on('openProcessManager', () => { | ||
6 | openProcessManager(); | ||
7 | }); | ||
8 | }; | ||