Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webview.webContents.addListener returns an empty object #148

Open
jdknowstocode opened this issue Feb 18, 2023 · 0 comments
Open

webview.webContents.addListener returns an empty object #148

jdknowstocode opened this issue Feb 18, 2023 · 0 comments

Comments

@jdknowstocode
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant