webContents.__proto__ = EventEmitter.prototype
# WebContents::send(channel, args..)
- webContents.send = (args...) ->
- @_send 'ATOM_INTERNAL_MESSAGE', [args...]
+ webContents.send = (channel, args...) ->
+ @_send channel, [args...]
# Make sure webContents.executeJavaScript would run the code only when the
# web contents has been loaded.
# Created by init.coffee.
ipc = v8Util.getHiddenValue global, 'ipc'
-ipc.on 'ATOM_INTERNAL_MESSAGE', (args...) ->
- @emit args...
-
ipc.send = (args...) ->
binding.send 'ipc-message', [args...]