aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/assets/js/menu_click.min.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/assets/js/menu_click.min.js')
-rw-r--r--app/src/main/assets/js/menu_click.min.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/src/main/assets/js/menu_click.min.js b/app/src/main/assets/js/menu_click.min.js
index 4d508f71..60671265 100644
--- a/app/src/main/assets/js/menu_click.min.js
+++ b/app/src/main/assets/js/menu_click.min.js
@@ -1,8 +1,9 @@
console.log("Registering menu click"),document.addEventListener("click",function(e){
var t=e.target||e.srcElement
;if("A"!==t.tagName&&(t=t.parentNode),"A"===t.tagName&&"#"!==t.getAttribute("href")){
-var o=t.href
-;console.log("Click Intercept"),console.log(o),Frost.loadUrl(o),e.stopPropagation(),
+var o=t.getAttribute("href")
+;console.log("Click Intercept"),console.log(o),Frost.loadUrl(o),
+e.stopPropagation(),
e.preventDefault()
}
},!0); \ No newline at end of file