1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 07:22:28 +02:00

Just select already existing tab when opening link from logger

This commit is contained in:
Raymond Hill 2023-03-11 09:40:34 -05:00
parent 4465520a7c
commit 7bfa8f260b
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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();
}
);
})();
/******************************************************************************/