bloodymary/app/ipcMain.js

14 lines
444 B
JavaScript
Raw Normal View History

2020-08-06 12:54:20 +00:00
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _electron = require('electron');
exports.default = {
on: (event, callback) => _electron.ipcMain.on(`DISCORD_${event}`, callback),
removeListener: (event, callback) => _electron.ipcMain.removeListener(`DISCORD_${event}`, callback),
reply: (event, channel, ...args) => event.sender.send(`DISCORD_${channel}`, ...args)
};
module.exports = exports.default;