17 lines
374 B
HTML
17 lines
374 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.getWebContents().id)
|
||
|
})
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|