aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/assets/js/click_a.min.js
blob: d858d956792cbd406dee285324625729cf1a5bfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
console.log("Registering frost_a click")

;var _frostAClick=function(t){
var e=t.target||t.srcElement
;if("A"!==e.tagName&&(e=e.parentNode),"A"!==e.tagName&&(e=e.parentNode),
"A"===e.tagName&&"#"!==e.getAttribute("href")){
var r=e.getAttribute("href")
;console.log("Click Intercept",r),Frost.loadUrl(r),t.stopPropagation(),
t.preventDefault()
}
}
;document.addEventListener("click",_frostAClick,!0);