mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
Just select already existing tab when opening link from logger
This commit is contained in:
parent
4465520a7c
commit
7bfa8f260b
@ -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 New Issue
Block a user