diff --git a/atom/browser/api/lib/web-contents.coffee b/atom/browser/api/lib/web-contents.coffee index 5217a7b386de..cb772fd8c27e 100644 --- a/atom/browser/api/lib/web-contents.coffee +++ b/atom/browser/api/lib/web-contents.coffee @@ -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. diff --git a/atom/renderer/api/lib/ipc.coffee b/atom/renderer/api/lib/ipc.coffee index 5215b2c5f2e8..1c508a3a5493 100644 --- a/atom/renderer/api/lib/ipc.coffee +++ b/atom/renderer/api/lib/ipc.coffee @@ -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...]