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

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