Browse Source

prevent accidental ctrl-w window closure

pull/123/head
Imuli 9 years ago
committed by cbutler
parent
commit
f67124b793
No known key found for this signature in database GPG Key ID: 9EB3D625BD14DDEC
  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