aboutsummaryrefslogtreecommitdiff
path: root/app/src/web/assets/js/click_debugger.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/web/assets/js/click_debugger.js')
-rw-r--r--app/src/web/assets/js/click_debugger.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/src/web/assets/js/click_debugger.js b/app/src/web/assets/js/click_debugger.js
new file mode 100644
index 00000000..16729899
--- /dev/null
+++ b/app/src/web/assets/js/click_debugger.js
@@ -0,0 +1,12 @@
+"use strict";
+(function () {
+ var _frostAContext = function (e) {
+ var element = e.target || e.currentTarget || e.srcElement;
+ if (!(element instanceof Element)) {
+ console.log("No element found");
+ return;
+ }
+ console.log("Clicked element " + element.tagName + " " + element.className);
+ };
+ document.addEventListener('contextmenu', _frostAContext, true);
+}).call(undefined);