summaryrefslogtreecommitdiff
path: root/js/app.js
diff options
context:
space:
mode:
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()