From 63d8779ad4fab7d2eb762be34eeca04c7debc6f3 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Mon, 13 Nov 2017 05:09:24 -0500 Subject: Enhancement/video (#484) * Fix more parsing issues * Try catch decoder resolves #456 * Fix unit test and add null check for images, resolves #458 * Remove downloadservice, resolves #459 * Clean up progress animator * Check for download manager before download attempt * Update strings --- app/src/main/assets/js/click_a.js | 2 ++ app/src/main/assets/js/click_a.min.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'app/src/main/assets') diff --git a/app/src/main/assets/js/click_a.js b/app/src/main/assets/js/click_a.js index 2f5d759f..1ced820a 100644 --- a/app/src/main/assets/js/click_a.js +++ b/app/src/main/assets/js/click_a.js @@ -25,6 +25,8 @@ if (!window.hasOwnProperty('frost_click_a')) { e.stopPropagation(); e.preventDefault(); } + } else { + console.log('Click Intercept Prevented'); } } } diff --git a/app/src/main/assets/js/click_a.min.js b/app/src/main/assets/js/click_a.min.js index a0df6912..7abaaac6 100644 --- a/app/src/main/assets/js/click_a.min.js +++ b/app/src/main/assets/js/click_a.min.js @@ -4,7 +4,7 @@ window.frost_click_a=!0 ;var prevented=!1,_frostAClick=function(e){ var t=e.target||e.srcElement ;if("A"!==t.tagName&&(t=t.parentNode),"A"!==t.tagName&&(t=t.parentNode), -"A"===t.tagName&&!prevented){ +"A"===t.tagName)if(prevented)console.log("Click Intercept Prevented");else{ var o=t.getAttribute("href") ;console.log("Click Intercept",o),"undefined"!=typeof Frost&&Frost.loadUrl(o)&&(e.stopPropagation(), e.preventDefault()) -- cgit v1.2.3