mirror of
https://github.com/electron/electron.git
synced 2026-01-23 06:18:17 -05:00
No need to route via ATOM_INTERNAL_MESSAGE
This commit is contained in:
@@ -9,8 +9,8 @@ module.exports.wrap = (webContents) ->
|
||||
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.
|
||||
|
||||
@@ -4,9 +4,6 @@ v8Util = process.atomBinding 'v8_util'
|
||||
# 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...]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user