Move open parent and open root to background

This commit is contained in:
Shin'ya Ueoka 2019-05-24 21:51:18 +09:00
parent e779fb1779
commit 8d0739463d
8 changed files with 108 additions and 57 deletions
src/background/presenters

View file

@ -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()) ||