electron/spec/fixtures/api/close-beforeunload-empty-string.html

14 lines
270 B
HTML
Raw Normal View History

2013-09-02 08:54:54 +00:00
<html>
<body>
<script type="text/javascript" charset="utf-8">
window.onbeforeunload = function() {
setTimeout(function() {
require('remote').getCurrentWindow().emit('onbeforeunload');
}, 0);
return '';
}
window.close();
</script>
</body>
</html>