1
0
mirror of https://github.com/keeweb/keeweb.git synced 2024-07-01 08:20:57 +02:00
keeweb/desktop/scripts/ipc.js
antelle 076b99676d
fix #1775: special error message for cases when Touch ID is changed after setup
also added Touch ID key deletion when it's disabled
2021-04-02 18:47:04 +02:00

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);
};