mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-02 20:34:07 +02:00
11 lines
274 B
JavaScript
11 lines
274 B
JavaScript
(function($TD){
|
|
//
|
|
// Block: Hook into links to bypass default open function
|
|
//
|
|
document.body.addEventListener("click",function(e){
|
|
if (e.target.tagName == "A"){
|
|
$TD.openBrowser(e.target.getAttribute("href"));
|
|
e.preventDefault();
|
|
}
|
|
});
|
|
})($TD); |