mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 01:51:40 -05:00
Merge pull request #3453 from Rummskartoffel/patch-1
Remove outdated comment
This commit is contained in:
commit
a7ddfd6ae9
1 changed files with 0 additions and 3 deletions
|
@ -2217,9 +2217,6 @@ export async function tabnext_gt(index?: number) {
|
||||||
*/
|
*/
|
||||||
//#background
|
//#background
|
||||||
export async function tabprev(increment = 1) {
|
export async function tabprev(increment = 1) {
|
||||||
// Proper way:
|
|
||||||
// return tabIndexSetActive((await activeTab()).index - increment + 1)
|
|
||||||
// Kludge until https://bugzilla.mozilla.org/show_bug.cgi?id=1504775 is fixed:
|
|
||||||
return browser.tabs.query({ currentWindow: true, hidden: false }).then(tabs => {
|
return browser.tabs.query({ currentWindow: true, hidden: false }).then(tabs => {
|
||||||
tabs.sort((t1, t2) => t1.index - t2.index)
|
tabs.sort((t1, t2) => t1.index - t2.index)
|
||||||
const prevTab = (tabs.findIndex(t => t.active) - increment + tabs.length) % tabs.length
|
const prevTab = (tabs.findIndex(t => t.active) - increment + tabs.length) % tabs.length
|
||||||
|
|
Loading…
Add table
Reference in a new issue