Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
45473bb2af | |||
24f38fdc72 | |||
bb5aa2561f | |||
816cd102a2 |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@api.global/typedelectron",
|
||||
"version": "1.0.8",
|
||||
"version": "1.0.10",
|
||||
"private": false,
|
||||
"description": "a package made for ipc communication in electron",
|
||||
"main": "dist_ts/index.js",
|
||||
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@api.global/typedelectron',
|
||||
version: '1.0.8',
|
||||
version: '1.0.10',
|
||||
description: 'a package made for ipc communication in electron'
|
||||
}
|
||||
|
@ -10,8 +10,9 @@ export class TypedElectronBackend {
|
||||
public typedrouter = new plugins.typedrequest.TypedRouter();
|
||||
|
||||
constructor() {
|
||||
plugins.electron.ipcMain.on('typedrequest', (eventArg, payloadArg) => {
|
||||
this.typedrouter.routeAndAddResponse({ ...payloadArg }); // TODO: check how to pass on eventArg
|
||||
plugins.electron.ipcMain.on('typedrequest', async (eventArg, payloadArg) => {
|
||||
const updatedPayload = await this.typedrouter.routeAndAddResponse({ ...payloadArg }); // TODO: check how to pass on eventArg
|
||||
eventArg.sender.send('typedrequest', updatedPayload);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@api.global/typedelectron',
|
||||
version: '1.0.8',
|
||||
version: '1.0.10',
|
||||
description: 'a package made for ipc communication in electron'
|
||||
}
|
||||
|
Reference in New Issue
Block a user