Fix using BrowserWindow as parameter for ipc.sendChannel.

This commit is contained in:
Cheng Zhao 2014-02-17 15:24:42 +08:00
parent a9efe77ceb
commit 07fc2b41af
2 changed files with 2 additions and 1 deletions

View file

@ -23,6 +23,6 @@ autoUpdater.quitAndInstall = ->
# Tell all windows to remove beforeunload handler and then close itself.
ipc = require 'ipc'
ipc.sendChannel win.getProcessId(), win.getRoutingId(), 'ATOM_SHELL_SILENT_CLOSE' for win in windows
ipc.sendChannel win, 'ATOM_SHELL_SILENT_CLOSE' for win in windows
module.exports = autoUpdater