aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/assets/js/menu_click.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/assets/js/menu_click.js')
-rw-r--r--app/src/main/assets/js/menu_click.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/assets/js/menu_click.js b/app/src/main/assets/js/menu_click.js
index 82041b0e..403689eb 100644
--- a/app/src/main/assets/js/menu_click.js
+++ b/app/src/main/assets/js/menu_click.js
@@ -1,11 +1,11 @@
// we will handle click events
console.log('Registering menu click');
-document.addEventListener('click', function(e) {
+document.addEventListener('click', function _menuClick(e) {
var element = e.target || e.srcElement;
if (element.tagName !== 'A')
element = element.parentNode;
if (element.tagName === 'A' && element.getAttribute('href') !== '#') {
- var url = element.href;
+ var url = element.getAttribute('href');
console.log('Click Intercept');
console.log(url);
Frost.loadUrl(url);