2019-06-16 00:41:43 +02:00
|
|
|
import { ipcRenderer } from 'electron';
|
|
|
|
|
|
|
|
function sendCredentials(credentials: ICredentials) {
|
2019-06-19 00:15:16 +02:00
|
|
|
ipcRenderer.send(IpcChannels.Credentials, credentials);
|
2019-06-16 00:41:43 +02:00
|
|
|
}
|
|
|
|
|
2019-06-19 00:15:16 +02:00
|
|
|
ipcRenderer.on(IpcChannels.Pong, (event, ...args: any) => {
|
2019-06-16 00:41:43 +02:00
|
|
|
console.log(args);
|
|
|
|
});
|
|
|
|
|
|
|
|
export default {
|
|
|
|
sendCredentials,
|
|
|
|
};
|