diff options
| author | Julie Lala <jules@okfoc.us> | 2015-01-25 22:04:39 -0500 |
|---|---|---|
| committer | Julie Lala <jules@okfoc.us> | 2015-01-25 22:04:39 -0500 |
| commit | 92f59149b7982b5a6aad6efd39c648cc8582a900 (patch) | |
| tree | 98386eea4f048f67c1a539640a2a5ee9d5a49cc5 /js/app.js | |
| parent | fe5b9cf2386f83901a3039e470f36fb389c1c5e6 (diff) | |
onbeforeunload
Diffstat (limited to 'js/app.js')
| -rw-r--r-- | js/app.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -56,6 +56,10 @@ function bind () { if (current_tool.name != 'shader') { cursor_input.focus() } document.body.classList.remove('loading') }) + + window.onbeforeunload = function() { + return "Are you sure you want to navigate away?"; + } } init() |
