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
|
@ -5,6 +5,7 @@ sendWrap = (channel, processId, routingId, args...) ->
|
|||
BrowserWindow = require 'browser-window'
|
||||
if processId?.constructor is BrowserWindow
|
||||
window = processId
|
||||
args = [routingId, args...]
|
||||
processId = window.getProcessId()
|
||||
routingId = window.getRoutingId()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue