Add remote.getCurrentWebContents API

This commit is contained in:
Cheng Zhao 2015-05-11 14:05:20 +08:00
parent fc2bc20572
commit 4c10925694
3 changed files with 15 additions and 1 deletions

View file

@ -107,6 +107,9 @@ ipc.on 'ATOM_BROWSER_CURRENT_WINDOW', (event, guestInstanceId) ->
catch e
event.returnValue = errorToMeta e
ipc.on 'ATOM_BROWSER_CURRENT_WEB_CONTENTS', (event) ->
event.returnValue = valueToMeta event.sender, event.sender
ipc.on 'ATOM_BROWSER_CONSTRUCTOR', (event, id, args) ->
try
args = unwrapArgs event.sender, args