Move open parent and open root to background
This commit is contained in:
parent
e779fb1779
commit
8d0739463d
8 changed files with 108 additions and 57 deletions
src/background/presenters
|
@ -36,7 +36,7 @@ export default class TabPresenter {
|
|||
return tabId;
|
||||
}
|
||||
|
||||
async getByKeyword(keyword: string, excludePinned = false): Promise<Tab[]> {
|
||||
async getByKeyword(keyword: string, excludePinned: boolean = false): Promise<Tab[]> {
|
||||
let tabs = await browser.tabs.query({ currentWindow: true });
|
||||
return tabs.filter((t) => {
|
||||
return t.url && t.url.toLowerCase().includes(keyword.toLowerCase()) ||
|
||||
|
|
Reference in a new issue