Skip to content

Commit

Permalink
fix: Open Full View after active tab (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
navorite committed Nov 14, 2023
1 parent 7b2147f commit 2ec9a05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/utils/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export async function openExtensionPage(page: Page, query?: string) {
if (!t2.length)
browser.tabs.create({
url: getExtensionURL(page, query),
index: currentTab.index
index: currentTab.index + 1
});
else {
const extensionTab = t2[0]!;
Expand All @@ -53,7 +53,7 @@ export async function openExtensionPage(page: Page, query?: string) {
extensionTab.windowId !== currentTab.windowId
)
browser.tabs.move(extensionTab.id!, {
index: currentTab.index,
index: currentTab.index + 1,
windowId: currentTab.windowId
});

Expand Down

0 comments on commit 2ec9a05

Please sign in to comment.