mirror of
https://github.com/vale981/tridactyl
synced 2025-03-06 01:51:40 -05:00
Remove outdated 'Id' from helper func
This commit is contained in:
parent
c8431cea3c
commit
0088b18798
1 changed files with 2 additions and 2 deletions
|
@ -2521,14 +2521,14 @@ export async function fullscreen() {
|
|||
*/
|
||||
//#background
|
||||
export async function tabclose(...indexes: string[]) {
|
||||
async function maybeWinTabToTabId(id: string) {
|
||||
async function maybeWinTabToTab(id: string) {
|
||||
if (id.includes(".")) {
|
||||
const [winid, tabindex_number] = await parseWinTabIndex(id)
|
||||
return (await browser.tabs.query({ windowId: winid, index: tabindex_number }))[0]
|
||||
}
|
||||
return tabFromIndex(id)
|
||||
}
|
||||
const tabs = await Promise.all(indexes.length > 0 ? indexes.map(maybeWinTabToTabId) : [activeTab()])
|
||||
const tabs = await Promise.all(indexes.length > 0 ? indexes.map(maybeWinTabToTab) : [activeTab()])
|
||||
const tabclosepinned = (await config.getAsync("tabclosepinned")) === "true"
|
||||
if (!tabclosepinned) {
|
||||
// Pinned tabs should not be closed, abort if one of the tabs is pinned
|
||||
|
|
Loading…
Add table
Reference in a new issue