Use ipcMain in Electron's code

This commit is contained in:
Cheng Zhao 2015-11-10 16:04:34 +08:00
parent 844cea8f21
commit 751af25f37
11 changed files with 16 additions and 16 deletions

View file

@ -1,6 +1,6 @@
EventEmitter = require('events').EventEmitter
app = require 'app'
ipc = require 'ipc'
ipc = require 'ipc-main'
deprecate = require 'deprecate'
BrowserWindow = process.atomBinding('window').BrowserWindow

View file

@ -1,4 +1,4 @@
ipc = require 'ipc'
ipc = require 'ipc-main'
# The history operation in renderer is redirected to browser.
ipc.on 'ATOM_SHELL_NAVIGATION_CONTROLLER', (event, method, args...) ->

View file

@ -2,7 +2,7 @@ EventEmitter = require('events').EventEmitter
Menu = require './menu'
NavigationController = require './navigation-controller'
binding = process.atomBinding 'web_contents'
ipc = require 'ipc'
ipc = require 'ipc-main'
nextId = 0
getNextId = -> ++nextId