mirror of https://github.com/electron/electron
15 lines
294 B
HTML
15 lines
294 B
HTML
|
<html>
|
||
|
<body>
|
||
|
<script type="text/javascript" charset="utf-8">
|
||
|
// Only prevent unload on the first window close
|
||
|
var unloadPrevented = false;
|
||
|
window.onbeforeunload = function() {
|
||
|
if (!unloadPrevented) {
|
||
|
unloadPrevented = true;
|
||
|
return '';
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|