electron/spec-main/fixtures/api/close-beforeunload-undefined.html

13 lines
277 B
HTML

<html>
<body>
<script type="text/javascript" charset="utf-8">
window.onbeforeunload = function() {
setTimeout(function() {
require('electron').ipcRenderer.sendSync('onbeforeunload');
}, 0);
}
window.onload = () => window.close();
</script>
</body>
</html>