UNPKG

electron-postman

Version:

Easy Electron IPC with focus on window-to-window communication and disabled node integration in renderers

9 lines (8 loc) 333 B
if (process.type === 'renderer') { module.exports.ipcRenderer = require('./src/ipcRenderer'); } else if (process.type === 'browser') { module.exports.ipcMain = require('./src/ipcMain'); } else { throw Error('grapes-ipc works only in Electron main and renderer process. Process type ' + `${process.type} is not supported`); }