summaryrefslogtreecommitdiff
path: root/client/assets/javascripts/rectangles/util/debug.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/assets/javascripts/rectangles/util/debug.js')
-rw-r--r--client/assets/javascripts/rectangles/util/debug.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/client/assets/javascripts/rectangles/util/debug.js b/client/assets/javascripts/rectangles/util/debug.js
new file mode 100644
index 0000000..924c816
--- /dev/null
+++ b/client/assets/javascripts/rectangles/util/debug.js
@@ -0,0 +1,8 @@
+/*
+ on mousedown, z := true
+
+ if (z) // log stuff
+*/
+
+window.z = true;
+document.body.addEventListener("mousedown", function(){ z = true })