ipc/expose: fix arguments being given as array instead of spread

This commit is contained in:
CanadaHonk 2023-01-06 22:09:41 +00:00
parent bdc0e29e73
commit 8d4dd9aea1

View File

@ -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
};