You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I noticed the callback function in the webview struct, but I don't think that's what I'm looking for. Namely, I would like to know if there's a way to intercept web events such as page redirects / navigation. A concrete example would be intercepting the redirect of an OAuth 2 application so that you can extract the state information the server returns.
The text was updated successfully, but these errors were encountered:
Can't it be done by trapping the event within JS, then signalling the backend
via window.external.invoke_? Don't know if it would work for navigations or
redirects, though.
That's an interesting option... I didn't think of injecting JS into the web page I was loading to try to detect it that way.. I have no control over the content that's loaded within the page.. and I'd have to re-inject the JS every time the user navigated until I detected what I needed.
So I noticed the callback function in the webview struct, but I don't think that's what I'm looking for. Namely, I would like to know if there's a way to intercept web events such as page redirects / navigation. A concrete example would be intercepting the redirect of an OAuth 2 application so that you can extract the state information the server returns.
The text was updated successfully, but these errors were encountered: