Skip to content

Commit

Permalink
Use given tab information available on Firefox 126 and later
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed May 17, 2024
1 parent c399c12 commit 02abdd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webextensions/background/handle-misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async function onShortcutCommand(command) {
if (mInitializationPhase < PHASE_BACKGROUND_INITIALIZED)
return;

let activeTabs = await browser.tabs.query({
let activeTabs = command.tab ? [command.tab] : await browser.tabs.query({
active: true,
currentWindow: true,
}).catch(ApiTabs.createErrorHandler());
Expand Down

0 comments on commit 02abdd1

Please sign in to comment.