mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
Just select already existing tab when opening link from logger
This commit is contained in:
parent
4465520a7c
commit
7bfa8f260b
1 changed files with 17 additions and 0 deletions
|
@ -2070,6 +2070,23 @@ dom.on(document, 'keydown', ev => {
|
|||
'.canDetails > span:not(:nth-of-type(4)):not(:nth-of-type(8))',
|
||||
ev => { toggleOn(ev); }
|
||||
);
|
||||
|
||||
dom.on(
|
||||
'#netInspector',
|
||||
'click',
|
||||
'.logEntry > div > span:nth-of-type(8) a',
|
||||
ev => {
|
||||
vAPI.messaging.send('codeViewer', {
|
||||
what: 'gotoURL',
|
||||
details: {
|
||||
url: ev.target.getAttribute('href'),
|
||||
select: true,
|
||||
},
|
||||
});
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
}
|
||||
);
|
||||
})();
|
||||
|
||||
/******************************************************************************/
|
||||
|
|
Loading…
Reference in a new issue