mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -05:00
fixing indents
This commit is contained in:
parent
3c73886b3f
commit
1be6897200
2 changed files with 6 additions and 4 deletions
|
@ -2336,7 +2336,9 @@ export async function tabclose(...indexes: string[]) {
|
|||
*/
|
||||
//#background
|
||||
export async function tabcloseallto(side: string) {
|
||||
if !(["left", "right"].includes(side)) throw("side argument must be left or right")
|
||||
if (!(["left", "right"].includes(side))) {
|
||||
throw "side argument must be left or right"
|
||||
} else {
|
||||
const tabs = await browser.tabs.query({
|
||||
pinned: false,
|
||||
currentWindow: true,
|
||||
|
@ -2346,9 +2348,9 @@ export async function tabcloseallto(side: string) {
|
|||
const comp = side == "right" ? tab => tab.index > atab.index : tab => tab.index < atab.index
|
||||
const ids = tabs.filter(comp).map(tab => tab.id)
|
||||
return browser.tabs.remove(ids)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/** Restore the most recently closed item.
|
||||
The default behaviour is to restore the most recently closed tab in the
|
||||
current window unless the most recently closed item is a window.
|
||||
|
|
|
@ -573,8 +573,8 @@ export class default_config {
|
|||
extp: "extpreferences",
|
||||
prefset: "setpref",
|
||||
prefremove: "removepref",
|
||||
tabclosealltoright: "tabcloseallto right"
|
||||
tabclosealltoleft: "tabcloseallto left"
|
||||
tabclosealltoright: "tabcloseallto right",
|
||||
tabclosealltoleft: "tabcloseallto left"
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue