From 30e4414af60fdb9f5d2292610ab2b74601da8cef Mon Sep 17 00:00:00 2001 From: mbnuqw Date: Sat, 17 Feb 2024 22:22:07 +0500 Subject: [PATCH] fix: preview: don't open popup on discarded tab (#301) --- src/services/tabs.preview.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/tabs.preview.ts b/src/services/tabs.preview.ts index 42c848ed..6aa6554f 100644 --- a/src/services/tabs.preview.ts +++ b/src/services/tabs.preview.ts @@ -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