mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
this addresses https://www.reddit.com/r/pathofexile/comments/3okptl/ublock_origins_wont_let_me_open_links_in_new_tabs/cvyd5xb
This commit is contained in:
parent
a3ed66688b
commit
6cb185c973
1 changed files with 5 additions and 1 deletions
|
@ -919,11 +919,15 @@ var uBlockCollapser = (function() {
|
|||
return;
|
||||
}
|
||||
var onMouseClick = function(ev) {
|
||||
var elem = ev.target;
|
||||
while ( elem !== null && elem.localName !== 'a' ) {
|
||||
elem = elem.parentElement;
|
||||
}
|
||||
messager.send({
|
||||
what: 'mouseClick',
|
||||
x: ev.clientX,
|
||||
y: ev.clientY,
|
||||
url: ev.target && ev.target.localName === 'a' ? ev.target.href : ''
|
||||
url: elem !== null ? elem.href : ''
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue