From 0088b187989d492d05d9f02b66b0bac05900f643 Mon Sep 17 00:00:00 2001 From: Benoit de Chezelles Date: Thu, 18 Feb 2021 00:13:58 +0100 Subject: [PATCH] Remove outdated 'Id' from helper func --- src/excmds.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/excmds.ts b/src/excmds.ts index db484bfd..0b46f854 100644 --- a/src/excmds.ts +++ b/src/excmds.ts @@ -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