Browse Source
prevent accidental ctrl-w window closure
pull/123/head
Imuli
9 years ago
committed by
cbutler
No known key found for this signature in database
GPG Key ID: 9EB3D625BD14DDEC
1 changed files with
6 additions and
0 deletions
-
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> |
|
|
|