Chrome App webview does not allow access to MessageEvent source in inspector -


i using webview in google chrome app, , when try send message webview parent page, come through, can't access source property send back. have specified origin send parent window origin, , still comes through client, when try inspect in client console, throws error.

webview.addeventlistener('contentload', function() {     webview.contentwindow.postmessage('welcome', window.location.origin); }); 

and in webview:

window.addeventlistener('message', function(event){     console.log(event); }); 

it turned out event.source.postmessage still accessible, couldn't inspect in console.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -