electron/spec/fixtures/api/close-beforeunload-true.html

15 lines
273 B
HTML
Raw Normal View History

<html>
<body>
<script type="text/javascript" charset="utf-8">
window.onbeforeunload = function() {
setTimeout(function() {
require('remote').getCurrentWindow().emit('onbeforeunload');
}, 0);
return true;
}
window.close();
</script>
</body>
</html>