open links correctly in contacts app
This commit is contained in:
@@ -21,6 +21,14 @@ define([
|
|||||||
// remove potentially malicious elements
|
// remove potentially malicious elements
|
||||||
$d.find('script, iframe, object, applet, video, audio').remove();
|
$d.find('script, iframe, object, applet, video, audio').remove();
|
||||||
|
|
||||||
|
// override link clicking, because we're in an iframe
|
||||||
|
$d.find('a').each(function () {
|
||||||
|
var href = $(this).click(function (e) {
|
||||||
|
e.preventDefault();
|
||||||
|
window.open(href);
|
||||||
|
}).attr('href');
|
||||||
|
});
|
||||||
|
|
||||||
// activate media-tags
|
// activate media-tags
|
||||||
$d.find('media-tag').each(function (i, e) { MediaTag(e); });
|
$d.find('media-tag').each(function (i, e) { MediaTag(e); });
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user