mirror of https://github.com/keeweb/keeweb
moved ipc handlers setup to corresponding files
parent
7bea4ad282
commit
e06e9ac1f8
@ -0,0 +1,4 @@
|
||||
const { ipcMain } = require('electron');
|
||||
|
||||
ipcMain.handle('browserExtensionConnectorStart', () => {});
|
||||
ipcMain.handle('browserExtensionConnectorStop', () => {});
|
@ -1,16 +1,6 @@
|
||||
const { ipcMain } = require('electron');
|
||||
const {
|
||||
hardwareCryptoDeleteKey,
|
||||
hardwareEncrypt,
|
||||
hardwareDecrypt
|
||||
} = require('./ipc-handlers/hardware-crypto');
|
||||
const { spawnProcess } = require('./ipc-handlers/spawn-process');
|
||||
const { nativeModuleCall } = require('./ipc-handlers/native-module-host-proxy');
|
||||
|
||||
module.exports.setupIpcHandlers = () => {
|
||||
ipcMain.handle('hardwareCryptoDeleteKey', hardwareCryptoDeleteKey);
|
||||
ipcMain.handle('hardwareEncrypt', hardwareEncrypt);
|
||||
ipcMain.handle('hardwareDecrypt', hardwareDecrypt);
|
||||
ipcMain.handle('spawnProcess', spawnProcess);
|
||||
ipcMain.on('nativeModuleCall', nativeModuleCall);
|
||||
require('./ipc-handlers/browser-extension-connector');
|
||||
require('./ipc-handlers/hardware-crypto');
|
||||
require('./ipc-handlers/native-module-host-proxy');
|
||||
require('./ipc-handlers/spawn-process');
|
||||
};
|
||||
|
Loading…
Reference in New Issue