electron/spec/fixtures/api/preload.html

17 lines
303 B
HTML
Raw Normal View History

<html>
<body>
<script type="text/javascript" charset="utf-8">
const send = () => {
if (!window.test)
window.test = 'window'
require('electron').ipcRenderer.send('answer', window.test);
}
if (window.delayed) {
window.addEventListener('load', send)
} else {
send()
}
</script>
</body>
</html>