Skip to content

Commit

Permalink
fix(LocalTabs): Do activate all tabs upon creating them
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed Dec 7, 2023
1 parent 6b57da9 commit abc58be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/LocalTabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit abc58be

Please sign in to comment.