Lightcord/src/ipcMain.ts

6 lines
254 B
TypeScript
Raw Normal View History

2020-05-16 23:24:51 +02:00
import * as electron from "electron"
export default {
on: (event:string, callback) => electron.ipcMain.on(`DISCORD_${event}`, callback),
removeListener: (event:string, callback) => electron.ipcMain.removeListener(`DISCORD_${event}`, callback)
};