ipc: fix incorrect function name

This commit is contained in:
CanadaHonk 2022-12-18 13:18:42 +00:00
parent 641b37895d
commit d174fd279f

View File

@ -125,9 +125,11 @@ delete window._gluonSend;
sendToWindow('pong', null, id); // send simple pong to confirm
};
return [ onWindowMessage, () => evaluate({
expression: injection
}), {
return [
onWindowMessage,
() => evalInWindow(injection),
{
on: (type, cb) => {
if (!ipcListeners[type]) ipcListeners[type] = [];
ipcListeners[type].push(cb);