electron/spec/fixtures/pages/webview-did-attach-event.html
2019-03-26 10:57:27 +09:00

16 lines
373 B
HTML

<!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.getWebContentsId())
})
</script>
</body>
</html>