From 80bca378df42aea13920934aa67f54a7998502bf Mon Sep 17 00:00:00 2001 From: bilou84 Date: Sat, 28 Oct 2017 17:18:20 +0200 Subject: [PATCH] Fix SupApp.onMessage not handling multiple arguments correctly --- src/SupApp/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SupApp/index.ts b/src/SupApp/index.ts index 04f1f4b..99cca15 100644 --- a/src/SupApp/index.ts +++ b/src/SupApp/index.ts @@ -79,7 +79,7 @@ function onPathAuthorizationChecked(event: Electron.Event, ipcId: string, checke namespace SupApp { export function onMessage(messageType: string, callback: Function) { - electron.ipcRenderer.addListener(`sup-app-message-${messageType}`, (event: Electron.Event, args: any[]) => { callback(...args); }); + electron.ipcRenderer.addListener(`sup-app-message-${messageType}`, (event: Electron.Event, ...args: any[]) => { callback(...args); }); } export function sendMessage(windowId: number, message: string) { electron.ipcRenderer.send("send-message", windowId, message);