blob: 3bd0314f81fe69f3588f75a6bbd0296bb0716ae3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// we will handle click events
document.onclick = function(e) {
e = e || window.event;
var element = e.target || e.srcElement;
if (element.tagName !== 'A')
element = element.parentNode;
if (element.tagName === 'A') {
var url = element.href;
console.log('Click Intercept');
console.log(url);
if (url !== "https://m.facebook.com/settings" && url !== "https://m.facebook.com/settings#" && url !== "https://m.facebook.com/settings#!/settings?soft=bookmarks")
Frost.loadUrl(url);
Frost.reloadBaseUrl(); //temporary workaround
}
};
|