1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-23 12:15:48 +02:00

Fix clicking on account names and youtube previews

Closes 
This commit is contained in:
chylex 2016-04-12 01:20:14 +02:00
parent 6a03730496
commit bd0413f9aa

View File

@ -202,7 +202,12 @@
// Block: Hook into links to bypass default open function
//
$(document.body).delegate("a[target='_blank']","click",function(e){
$TD.openBrowser($(this).attr("href"));
var me = $(this);
if (!me.is(".link-complex") && !(me.attr("rel") == "mediaPreview" && me.closest("#open-modal").length == 0)){
$TD.openBrowser(me.attr("href"));
}
e.preventDefault();
});
})($,$TD);