Add BrowserWindow.fromProcessIdAndRoutingId API.
This commit is contained in:
parent
d356be9c54
commit
66c35e4517
2 changed files with 7 additions and 4 deletions
|
@ -18,4 +18,9 @@ BrowserWindow.getFocusedWindow = ->
|
|||
windows = objectsRegistry.getAllWindows()
|
||||
return window for window in windows when window.isFocused()
|
||||
|
||||
BrowserWindow.fromProcessIdAndRoutingId = (processId, routingId) ->
|
||||
windows = objectsRegistry.getAllWindows()
|
||||
return window for window in windows when window.getProcessId() == processId and
|
||||
window.getRoutingId() == routingId
|
||||
|
||||
module.exports = BrowserWindow
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue