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