Also unpack arguments in ipc-message-host message
This commit is contained in:
parent
1a1cf57097
commit
482c740e61
1 changed files with 2 additions and 1 deletions
|
@ -68,7 +68,8 @@ createGuest = (embedder, params) ->
|
|||
embedder.send "ATOM_SHELL_GUEST_VIEW_INTERNAL_DISPATCH_EVENT-#{guest.viewInstanceId}", event, args...
|
||||
|
||||
# Dispatch guest's IPC messages to embedder.
|
||||
guest.on 'ipc-message-host', (_, channel, args...) ->
|
||||
guest.on 'ipc-message-host', (_, packed) ->
|
||||
[channel, args...] = packed
|
||||
embedder.send "ATOM_SHELL_GUEST_VIEW_INTERNAL_IPC_MESSAGE-#{guest.viewInstanceId}", channel, args...
|
||||
|
||||
# Autosize.
|
||||
|
|
Loading…
Reference in a new issue