Add "context-menu" DOM event to <webview>

This commit is contained in:
Javan Makhmali 2017-01-13 17:04:09 -05:00
parent ac6aeae915
commit a64bdbd306
2 changed files with 2 additions and 0 deletions

View file

@ -18,6 +18,7 @@ const supportedWebViewEvents = [
'did-get-redirect-request',
'dom-ready',
'console-message',
'context-menu',
'devtools-opened',
'devtools-closed',
'devtools-focused',

View file

@ -16,6 +16,7 @@ const WEB_VIEW_EVENTS = {
'did-get-redirect-request': ['oldURL', 'newURL', 'isMainFrame'],
'dom-ready': [],
'console-message': ['level', 'message', 'line', 'sourceId'],
'context-menu': ['params'],
'devtools-opened': [],
'devtools-closed': [],
'devtools-focused': [],