summaryrefslogtreecommitdiff
path: root/js/app.js
diff options
context:
space:
mode:
authorJulie Lala <jules@okfoc.us>2015-01-25 22:04:39 -0500
committerJulie Lala <jules@okfoc.us>2015-01-25 22:04:39 -0500
commit92f59149b7982b5a6aad6efd39c648cc8582a900 (patch)
tree98386eea4f048f67c1a539640a2a5ee9d5a49cc5 /js/app.js
parentfe5b9cf2386f83901a3039e470f36fb389c1c5e6 (diff)
onbeforeunload
Diffstat (limited to 'js/app.js')
-rw-r--r--js/app.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/app.js b/js/app.js
index 96faa7b..a9f7bb7 100644
--- a/js/app.js
+++ b/js/app.js
@@ -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()