aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/assets/js/click_debugger.js
blob: 71db586af2092994ec407c7ffbf1b815473d1c86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
'use strict';

(function () {
  // for desktop only
  var _frostAContext;

  _frostAContext = function _frostAContext(e) {
    /*
     * Commonality; check for valid target
     */
    var element;
    element = e.target || e.currentTarget || e.srcElement;
    if (!element) {
      return;
    }
    console.log('Clicked element: ' + element.tagName + ' ' + element.className);
  };

  document.addEventListener('contextmenu', _frostAContext, true);
}).call(undefined);