Do not enumerate windows in remote.getCurrentWindow
This commit is contained in:
parent
f2c7943d42
commit
1045bbc861
2 changed files with 3 additions and 10 deletions
|
@ -130,7 +130,7 @@ exports.require = (module) ->
|
|||
windowCache = null
|
||||
exports.getCurrentWindow = ->
|
||||
return windowCache if windowCache?
|
||||
meta = ipc.sendSync 'ATOM_BROWSER_CURRENT_WINDOW', process.guestInstanceId
|
||||
meta = ipc.sendSync 'ATOM_BROWSER_CURRENT_WINDOW'
|
||||
windowCache = metaToValue meta
|
||||
|
||||
# Get current WebContents object.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue