aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/assets/js/click_interceptor.js
blob: debf85dc531fb37fc4b4f0642dac96538f633cac (plain)
1
2
3
4
5
6
7
8
9
// we will handle click events
if (!window.hasOwnProperty('frost_click_interceptor')) {
  console.log('Registering frost_click_interceptor');
  window.frost_click_interceptor = true;
  document.addEventListener('click', function _menuClick(e) {
    var element = e.target || e.srcElement;
    console.log(element.tagName);
  }, true);
}