aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/assets/js/click-debugger.js
blob: 702a62c97cf04cd1120ca4d09718285a20f956ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);