mirror of
https://github.com/keeweb/keeweb.git
synced 2024-07-01 08:20:57 +02:00
17 lines
647 B
JavaScript
17 lines
647 B
JavaScript
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);
|
|
};
|