From 8d4dd9aea19727f56b0dbf05e3547f9005825922 Mon Sep 17 00:00:00 2001 From: CanadaHonk Date: Fri, 6 Jan 2023 22:09:41 +0000 Subject: [PATCH] ipc/expose: fix arguments being given as array instead of spread --- src/lib/ipc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 };