code review of 39277172e84b: select "All" when kb shortcut from logger itself

This commit is contained in:
Raymond Hill 2018-06-03 19:49:08 -04:00
parent e227571969
commit b838e22024
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 4 additions and 1 deletions

View File

@ -42,8 +42,11 @@
break; break;
case 'launch-logger': case 'launch-logger':
vAPI.tabs.get(null, function(tab) { vAPI.tabs.get(null, function(tab) {
let hash = tab.url.startsWith(vAPI.getURL('')) ?
'' :
'#tab_active+' + tab.id;
µb.openNewTab({ µb.openNewTab({
url: 'logger-ui.html#tab_active+' + tab.id, url: 'logger-ui.html' + hash,
select: true, select: true,
index: -1 index: -1
}); });