electron/spec/fixtures/pages/beforeunload-false.html
2015-05-01 13:48:23 +08:00

13 lines
260 B
HTML

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