regexp tester: switch to existing tabs also in other windows

This commit is contained in:
tophf 2017-11-14 09:41:24 +03:00
parent 135d8d9c54
commit e4cd984061

View File

@ -170,7 +170,10 @@ var regExpTester = (() => {
$('.regexp-report').onclick = event => { $('.regexp-report').onclick = event => {
const target = event.target.closest('a, .regexp-report div'); const target = event.target.closest('a, .regexp-report div');
if (target) { if (target) {
openURL({url: target.href || target.textContent}); openURL({
url: target.href || target.textContent,
currentWindow: null,
});
event.preventDefault(); event.preventDefault();
} }
}; };