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

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

17 lines
373 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.getWebContentsId())
2017-10-06 16:31:41 +00:00
})
</script>
</body>
</html>