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

13 lines
254 B
HTML
Raw Normal View History

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