Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

Commit

Permalink
Fix SupApp.onMessage not handling multiple arguments correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
bilou84 committed Oct 28, 2017
1 parent b6703d1 commit 80bca37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SupApp/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 80bca37

Please sign in to comment.