No need to route via ATOM_INTERNAL_MESSAGE

This commit is contained in:
Cheng Zhao 2015-01-27 10:47:11 -08:00
parent ad16e9ea49
commit 20431f4f2f
2 changed files with 2 additions and 5 deletions

View file

@ -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.