aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/assets/js/menu_click.min.js
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-13 17:07:09 -0700
committerAllan Wang <me@allanwang.ca>2017-06-13 17:07:09 -0700
commit0ac9d2181536b79a6057c3b526f32a1cc8ac4704 (patch)
treeb561acf7fc94a79e8a48b548489e0f544d402b8c /app/src/main/assets/js/menu_click.min.js
parente4377fed20ce1e3f4a0b236271eecdb1fe573b7a (diff)
downloadfrost-0ac9d2181536b79a6057c3b526f32a1cc8ac4704.tar.gz
frost-0ac9d2181536b79a6057c3b526f32a1cc8ac4704.tar.bz2
frost-0ac9d2181536b79a6057c3b526f32a1cc8ac4704.zip
Created working workaround for menu item
Diffstat (limited to 'app/src/main/assets/js/menu_click.min.js')
-rw-r--r--app/src/main/assets/js/menu_click.min.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/src/main/assets/js/menu_click.min.js b/app/src/main/assets/js/menu_click.min.js
new file mode 100644
index 00000000..f404e360
--- /dev/null
+++ b/app/src/main/assets/js/menu_click.min.js
@@ -0,0 +1 @@
+document.onclick=function(c){c.preventDefault?c.preventDefault():c.returnValue=false;c=c||window.event;var b=c.target||c.srcElement;if(b.tagName!=="A"){b=b.parentNode}if(b.tagName==="A"){var a=b.href;console.log("Click Intercept");console.log(a);if(a!=="https://m.facebook.com/settings"&&a!=="https://m.facebook.com/settings#"&&a!=="https://m.facebook.com/settings#!/settings?soft=bookmarks"){Frost.loadUrl(a)}Frost.reloadBaseUrl()}}; \ No newline at end of file