Deprecate ipc module for ipcMain
This commit is contained in:
parent
6515a445a0
commit
844cea8f21
3 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,6 @@
|
|||
EventEmitter = require('events').EventEmitter
|
||||
deprecate = require 'deprecate'
|
||||
|
||||
module.exports = new EventEmitter
|
||||
# This module is deprecated, we mirror everything from ipcRenderer.
|
||||
deprecate.warn 'ipc module', 'ipcMain module'
|
||||
|
||||
module.exports = require 'ipc-main'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue