mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-28 18:15:47 +02:00
Fix non-quoted tweet links opening in browser despite also opening in the column
Closes #273
This commit is contained in:
parent
89529f9c96
commit
65b8efe13c
@ -572,7 +572,9 @@
|
|||||||
//
|
//
|
||||||
execSafe(function setupShortenerBypass(){
|
execSafe(function setupShortenerBypass(){
|
||||||
$(document.body).delegate("a[data-full-url]", "click auxclick", function(e){
|
$(document.body).delegate("a[data-full-url]", "click auxclick", function(e){
|
||||||
if (e.button === 0 || e.button === 1){ // event.which seems to be borked in auxclick
|
// event.which seems to be borked in auxclick
|
||||||
|
// tweet links open directly in the column
|
||||||
|
if ((e.button === 0 || e.button === 1) && $(this).attr("rel") !== "tweet"){
|
||||||
$TD.openBrowser($(this).attr("data-full-url"));
|
$TD.openBrowser($(this).attr("data-full-url"));
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user