webview.webContents.addListener returns an empty object
jdknowstocode opened this issue · 0 comments
jdknowstocode commented
Expected Behavior
const webview = webContents.fromId(webviewel.getWebContentsId())
webview.addListener('will-navigate', e => console.log(e))
This code must return an object like this
{
isTrusted: false
url: "https://mail.google.com/"
bubbles: false
cancelBubble: false
cancelable: false
composed: false
currentTarget: null
defaultPrevented: false
eventPhase: 0
returnValue: true
srcElement: webview#webview.w-screen.h-[calc(100vh-40px)]
target: webview#webview.w-screen.h-[calc(100vh-40px)]
timeStamp: 1475.2000000001863
type: "will-navigate"
}
Actual Behavior
But returns an empty object with no data
{}
I do not understand the issue here properly. Please get to me as soon as possible.