aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/assets/js/click_interceptor.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/assets/js/click_interceptor.js')
-rw-r--r--app/src/main/assets/js/click_interceptor.js13
1 files changed, 8 insertions, 5 deletions
diff --git a/app/src/main/assets/js/click_interceptor.js b/app/src/main/assets/js/click_interceptor.js
index ce55f669..debf85dc 100644
--- a/app/src/main/assets/js/click_interceptor.js
+++ b/app/src/main/assets/js/click_interceptor.js
@@ -1,6 +1,9 @@
// we will handle click events
-console.log('Registering click interceptor');
-document.addEventListener('click', function _menuClick(e) {
- var element = e.target || e.srcElement;
- console.log(element.tagName);
-}, true);
+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);
+}