Skip to content

Commit 188cd4e

Browse files
fix(getCurrentTabId): use 'chromeProxy' (#149)
1 parent c454853 commit 188cd4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/extension/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export async function getTabId(context: ExecutionContext): Promise<number> {
6868
tabId = await getCurrentTabId(context.ekoConfig.chromeProxy);
6969
logger.debug("getCurrentTabId(context.ekoConfig.chromeProxy) #2 returns " + tabId);
7070
}
71-
71+
logger.debug("tabId:", tabId);
7272
if (!tabId) {
7373
const fellouTabId = (window as any).__FELLOU_TAB_ID__;
7474
if (fellouTabId) {
@@ -96,7 +96,7 @@ export function getCurrentTabId(chromeProxy: any, windowId?: number | undefined)
9696
logger.debug(`get the active tabId on current window`);
9797
queryInfo = { active: true, currentWindow: true };
9898
}
99-
chrome.tabs.query(queryInfo, (tabs: chrome.tabs.Tab[]) => {
99+
chromeProxy.tabs.query(queryInfo, (tabs: chrome.tabs.Tab[]) => {
100100
if (chromeProxy.runtime.lastError) {
101101
logger.error(`failed to get: `, chromeProxy.runtime.lastError);
102102
reject(chromeProxy.runtime.lastError);

0 commit comments

Comments
 (0)