Fix using BrowserWindow as parameter for ipc.sendChannel.
This commit is contained in:
parent
a9efe77ceb
commit
07fc2b41af
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue