diff --git a/src/lib/ipc.js b/src/lib/ipc.js index efdfc2f..0fc7d35 100644 --- a/src/lib/ipc.js +++ b/src/lib/ipc.js @@ -151,7 +151,7 @@ delete window._gluonSend; const exposeKey = makeExposeKey(key); - API.on(exposeKey, args => func(args)); // handle IPC events + API.on(exposeKey, args => func(...args)); // handle IPC events evalInWindow(`Gluon.ipc['${key}'] = (...args) => Gluon.ipc.send('${exposeKey}', args)`); // add wrapper func to window };