Strange Electron Webview Behavior
Noticed some strange Electron <webview>
behavior while working on a proof-of-concept for the next version of Doctrine.
I have a simple page with a <webview>
tag displaying a local HTML file. If the local HTML file contains a link and the user clicks on it, the default browser should open the URL instead of the <webview>
.
The following code produces the expected results:
webview.addEventListener('will-navigate', (event) => {
// Order is important or URL will open in …