Skip to content

Commit

Permalink
skip TST's dummy (group) tabs
Browse files Browse the repository at this point in the history
feature request from issue joshuacant#4
  • Loading branch information
amandamana authored Dec 19, 2019
1 parent 874effd commit 1330a5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ function findNextTab(tstTabs, direction, activeTabIndex) {
}
if (skipCollapsed) if (tstTabs[nextTabIndex].states.includes('collapsed')) continue;
if (skipDiscarded) if (tstTabs[nextTabIndex].discarded) continue;
if (tstTabs[nextTabIndex].states.includes('group-tab')) continue;
return tstTabs[nextTabIndex].id;
} while (cycleCount < 2);
return tstTabs[activeTabIndex].id;
Expand Down

0 comments on commit 1330a5a

Please sign in to comment.