Skip to content

Commit

Permalink
feat(private tabs): Avoid syncing private tabs
Browse files Browse the repository at this point in the history
fixes #1425

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed Dec 7, 2023
1 parent 7d984db commit 6b57da9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/LocalTabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ export default class LocalTabs implements IResource {
}

async getBookmarksTree():Promise<Folder> {
const tabs = await browser.tabs.query({
let tabs = await browser.tabs.query({
windowType: 'normal' // no devtools or panels or popups
})
tabs = tabs.filter(tab => !tab.incognito)

return new Folder({
title: '',
Expand Down

0 comments on commit 6b57da9

Please sign in to comment.