electron/spec/fixtures/pages/beforeunload-false.html

14 lines
269 B
HTML
Raw Normal View History

<html>
<body>
<script type="text/javascript" charset="utf-8">
window.onbeforeunload = function() {
setTimeout(function() {
2015-11-10 07:29:43 +00:00
var ipc = require('ipc-renderer');
ipc.sendToHost('onbeforeunload');
}, 0);
return false;
}
</script>
</body>
</html>