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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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>