asarfuckery/appasar/canary/app_bootstrap/ipcMain.js

13 lines
359 B
JavaScript
Raw Normal View History

2019-01-17 18:00:12 +00:00
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _electron = require('electron');
exports.default = {
2019-01-18 17:51:44 +00:00
on: (event, callback) => _electron.ipcMain.on(`DISCORD_${event}`, callback),
removeListener: (event, callback) => _electron.ipcMain.removeListener(`DISCORD_${event}`, callback)
2019-01-17 18:00:12 +00:00
};
module.exports = exports['default'];