electron/spec/fixtures/pages/webview-did-attach-event.html

17 lines
374 B
HTML
Raw Normal View History

2017-10-06 16:31:41 +00:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<webview src="./a.html"/>
<script>
var {ipcRenderer} = require('electron')
var wv = document.querySelector('webview')
wv.addEventListener('dom-ready', () => {
ipcRenderer.send('webview-dom-ready', wv.getWebContents().id)
})
</script>
</body>
</html>