Add sendToHost method
This commit is contained in:
parent
d46300587a
commit
a8f5a4e2d4
5 changed files with 17 additions and 7 deletions
|
@ -16,6 +16,9 @@ class Ipc extends EventEmitter
|
|||
sendSync: (args...) ->
|
||||
JSON.parse ipc.sendSync('ipc-message-sync', [args...])
|
||||
|
||||
sendToHost: (args...) ->
|
||||
ipc.send 'ipc-message-host', [args...]
|
||||
|
||||
# Discarded
|
||||
sendChannel: -> @send.apply this, arguments
|
||||
sendChannelSync: -> @sendSync.apply this, arguments
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue