From abc58be4b88c58685cb338fa8a019f6247713b4d Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Thu, 7 Dec 2023 15:39:11 +0100 Subject: [PATCH] fix(LocalTabs): Do activate all tabs upon creating them Signed-off-by: Marcel Klehr --- src/lib/LocalTabs.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/LocalTabs.ts b/src/lib/LocalTabs.ts index f9f545021a..e59ec02fad 100644 --- a/src/lib/LocalTabs.ts +++ b/src/lib/LocalTabs.ts @@ -57,7 +57,10 @@ export default class LocalTabs implements IResource { windowId: typeof bookmark.parentId === 'string' ? parseInt(bookmark.parentId) : bookmark.parentId, url: bookmark.url, // Only firefox allows discarded prop - ...(typeof browser.BookmarkTreeNodeType !== 'undefined' && { discarded: true }) + ...(typeof browser.BookmarkTreeNodeType !== 'undefined' && { discarded: true }), + active: false, + // Only chrome-like browsers allow select prop + ...(typeof browser.BookmarkTreeNodeType === 'undefined' && { selected: false }), }) ) return node.id