Skip to content

Commit

Permalink
fix: preview: don't open popup on discarded tab (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbnuqw committed Feb 17, 2024
1 parent 86f8c97 commit 30e4414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/tabs.preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ let listening = false

export async function showPreviewPopup(tabId: ID, y?: number) {
const tab = Tabs.byId[tabId]
if (!tab || tab.invisible) return
if (!tab || tab.invisible || tab.discarded) return

state.creation = true

Expand Down

0 comments on commit 30e4414

Please sign in to comment.