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.
|
# Tell all windows to remove beforeunload handler and then close itself.
|
||||||
ipc = require 'ipc'
|
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
|
module.exports = autoUpdater
|
||||||
|
|
|
@ -5,6 +5,7 @@ sendWrap = (channel, processId, routingId, args...) ->
|
||||||
BrowserWindow = require 'browser-window'
|
BrowserWindow = require 'browser-window'
|
||||||
if processId?.constructor is BrowserWindow
|
if processId?.constructor is BrowserWindow
|
||||||
window = processId
|
window = processId
|
||||||
|
args = [routingId, args...]
|
||||||
processId = window.getProcessId()
|
processId = window.getProcessId()
|
||||||
routingId = window.getRoutingId()
|
routingId = window.getRoutingId()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue