Return webContents directly

This commit is contained in:
Kevin Sawicki 2016-11-03 11:31:08 -07:00
parent 0e1c2b0fcb
commit 89a26684e5

View file

@ -431,8 +431,7 @@ var registerWebViewElement = function () {
// WebContents associated with this webview. // WebContents associated with this webview.
proto.getWebContents = function () { proto.getWebContents = function () {
const internal = v8Util.getHiddenValue(this, 'internal') return v8Util.getHiddenValue(this, 'internal').webContents
return internal.webContents
} }
window.WebView = webFrame.registerEmbedderCustomElement('webview', { window.WebView = webFrame.registerEmbedderCustomElement('webview', {