fix(core): update
This commit is contained in:
parent
8ab5b6f4b7
commit
816cd102a2
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@api.global/typedelectron',
|
||||
version: '1.0.8',
|
||||
version: '1.0.9',
|
||||
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.9',
|
||||
description: 'a package made for ipc communication in electron'
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user