RenaiApp/src/main/services/api.ts

18 lines
355 B
TypeScript
Raw Normal View History

import { ipcMain } from 'electron';
2019-06-19 00:15:16 +02:00
import WebContents = Electron.WebContents;
2019-06-19 00:15:16 +02:00
ipcMain.on(
IpcChannels.Credentials,
(
event: {
frameId: number;
preventDefault: () => void;
reply: (channel: string, ...args: any) => void;
sender: WebContents;
},
...args: any
) => {
event.reply(IpcChannels.Pong, args);
}
);