From 5e69ea3bada37bfe8c6176287c695440b9adfd3e Mon Sep 17 00:00:00 2001 From: Diana Fulga Date: Thu, 25 Jul 2024 09:01:30 +0300 Subject: [PATCH] fix(background): select current active window --- src/background/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/background/utils.ts b/src/background/utils.ts index 3ae4573e..3b38f044 100644 --- a/src/background/utils.ts +++ b/src/background/utils.ts @@ -4,7 +4,7 @@ import { DEFAULT_SCALE, EXCHANGE_RATES_URL } from './config' import { notNullOrUndef } from '@/shared/helpers' export const getCurrentActiveTab = async (browser: Browser) => { - const window = await browser.windows.getCurrent() + const window = await browser.windows.getLastFocused() const activeTabs = await browser.tabs.query({ active: true, windowId: window.id