electron/lib/browser/api/ipc-main.ts

9 lines
221 B
TypeScript
Raw Normal View History

2020-03-20 13:28:31 -07:00
import { IpcMainImpl } from '@electron/internal/browser/ipc-main-impl';
2016-01-11 18:40:23 -08:00
2020-03-20 13:28:31 -07:00
const ipcMain = new IpcMainImpl();
// Do not throw exception when channel name is "error".
2020-03-20 13:28:31 -07:00
ipcMain.on('error', () => {});
2016-12-01 14:43:30 -08:00
2020-03-20 13:28:31 -07:00
export default ipcMain;