electron/spec/fixtures/api/preload.html

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

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>