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.
|
// 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', {
|
||||||
|
|
Loading…
Reference in a new issue