Add remote.getGuestWebContents
This commit is contained in:
parent
c0955eaa90
commit
e95c1256a0
4 changed files with 18 additions and 2 deletions
|
@ -129,3 +129,8 @@ exports.createFunctionWithReturnValue = (returnValue) ->
|
|||
func = -> returnValue
|
||||
v8Util.setHiddenValue func, 'returnValue', true
|
||||
func
|
||||
|
||||
# Get the guest WebContents from guestInstanceId.
|
||||
exports.getGuestWebContents = (guestInstanceId) ->
|
||||
meta = ipc.sendChannelSync 'ATOM_BROWSER_GUEST_WEB_CONTENTS', guestInstanceId
|
||||
metaToValue meta
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue