ipc/expose: fix arguments being given as array instead of spread
This commit is contained in:
parent
bdc0e29e73
commit
8d4dd9aea1
@ -151,7 +151,7 @@ delete window._gluonSend;
|
|||||||
|
|
||||||
const exposeKey = makeExposeKey(key);
|
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
|
evalInWindow(`Gluon.ipc['${key}'] = (...args) => Gluon.ipc.send('${exposeKey}', args)`); // add wrapper func to window
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user