electron/spec/fixtures/crash-cases/webview-remove-on-wc-close/index.html

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
236 B
HTML
Raw Normal View History

<button id="closeBtn">close webview</button>
<webview id="webview" src="webview.html"></webview>
<script>
webview.onclose = () => webview.remove()
closeBtn.onclick = () => webview.executeJavaScript('window.close()', true)
</script>