Add remote.getCurrentWindow() API in renderer.
This commit is contained in:
parent
51db9494bd
commit
99f6a5678a
3 changed files with 24 additions and 0 deletions
|
@ -62,3 +62,8 @@ exports.require = (module) ->
|
|||
exports.getObject = (id) ->
|
||||
meta = ipc.sendChannelSync 'ATOM_INTERNAL_REFERENCE', id
|
||||
metaToValue meta
|
||||
|
||||
# Get current window object.
|
||||
exports.getCurrentWindow = ->
|
||||
meta = ipc.sendChannelSync 'ATOM_INTERNAL_CURRENT_WINDOW'
|
||||
metaToValue meta
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue