aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/assets/js/click-debugger.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/assets/js/click-debugger.js')
-rw-r--r--app/src/main/assets/js/click-debugger.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/src/main/assets/js/click-debugger.js b/app/src/main/assets/js/click-debugger.js
new file mode 100644
index 00000000..702a62c9
--- /dev/null
+++ b/app/src/main/assets/js/click-debugger.js
@@ -0,0 +1,13 @@
+//for desktop only
+var _frostAContext = function(e) {
+ /*
+ * Commonality; check for valid target
+ */
+ var element = e.target || e.currentTarget || e.srcElement;
+ if (!element) return;
+ console.log("Clicked element:");
+ console.log(element.tagName);
+ console.log(element.className);
+}
+
+document.addEventListener('contextmenu', _frostAContext, true);