6 lines
254 B
TypeScript
6 lines
254 B
TypeScript
|
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)
|
||
|
};
|