electron/spec/fixtures/pages/beforeunload-false.html
2015-11-10 15:29:43 +08:00

13 lines
269 B
HTML

<html>
<body>
<script type="text/javascript" charset="utf-8">
window.onbeforeunload = function() {
setTimeout(function() {
var ipc = require('ipc-renderer');
ipc.sendToHost('onbeforeunload');
}, 0);
return false;
}
</script>
</body>
</html>