Skip to content

Commit

Permalink
Just select already existing tab when opening link from logger
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Mar 11, 2023
1 parent 4465520 commit 7bfa8f2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/js/logger-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
);
})();

/******************************************************************************/
Expand Down

0 comments on commit 7bfa8f2

Please sign in to comment.