Improve the deprecation notice for ipc module

Close #3577.
This commit is contained in:
Cheng Zhao 2015-11-26 11:06:56 +08:00
parent 873bfd0538
commit 9c62be8fc9
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{deprecate, ipcMain} = require 'electron' {deprecate, ipcMain} = require 'electron'
# This module is deprecated, we mirror everything from ipcMain. # This module is deprecated, we mirror everything from ipcMain.
deprecate.warn 'ipc module', 'ipcMain module' deprecate.warn 'ipc module', 'require("electron").ipcMain'
module.exports = ipcMain module.exports = ipcMain

View file

@ -2,7 +2,7 @@
{EventEmitter} = require 'events' {EventEmitter} = require 'events'
# This module is deprecated, we mirror everything from ipcRenderer. # This module is deprecated, we mirror everything from ipcRenderer.
deprecate.warn 'ipc module', 'ipcRenderer module' deprecate.warn 'ipc module', 'require("electron").ipcRenderer'
# Routes events of ipcRenderer. # Routes events of ipcRenderer.
ipc = new EventEmitter ipc = new EventEmitter