Return webContents directly
This commit is contained in:
parent
0e1c2b0fcb
commit
89a26684e5
1 changed files with 1 additions and 2 deletions
|
@ -431,8 +431,7 @@ var registerWebViewElement = function () {
|
|||
|
||||
// WebContents associated with this webview.
|
||||
proto.getWebContents = function () {
|
||||
const internal = v8Util.getHiddenValue(this, 'internal')
|
||||
return internal.webContents
|
||||
return v8Util.getHiddenValue(this, 'internal').webContents
|
||||
}
|
||||
|
||||
window.WebView = webFrame.registerEmbedderCustomElement('webview', {
|
||||
|
|
Loading…
Reference in a new issue