Browse Source

Merge pull request #1 from imuli/preventaccidentalclosure

prevent accidental ctrl-w window closure
pull/126/head
Cian Butler 8 years ago
committed by GitHub
parent
commit
8daa08e193
  1. 6
      public/index.html

6
public/index.html

@ -25,6 +25,12 @@
<body>
<div id="terminal"></div>
<script type="application/javascript">
window.addEventListener('beforeunload', function(e) {
e.returnValue = "Are you sure?";
return e.returnValue;
});
</script>
</body>
</html>

Loading…
Cancel
Save