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

15 lines
294 B
HTML
Raw Normal View History

2013-09-02 08:54:54 +00:00
<html>
<body>
<script type="text/javascript" charset="utf-8">
// Only prevent unload on the first window close
var unloadPrevented = false;
2013-09-02 08:54:54 +00:00
window.onbeforeunload = function() {
if (!unloadPrevented) {
unloadPrevented = true;
return '';
}
2013-09-02 08:54:54 +00:00
}
</script>
</body>
</html>