OpenAsar/src/ipcMain.js

5 lines
253 B
JavaScript
Raw Normal View History

2021-12-09 16:25:14 +00:00
// Discord's wrapper around ipcMain
const { ipcMain } = require('electron');
exports.on = (event, callback) => ipcMain.on('DISCORD_' + event, callback);
exports.removeListener = (event, callback) => ipcMain.removeListener('DISCORD_' + event, callback);