From 03370301a7509af4bbc96d60269598bf89c71fe4 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Fri, 24 May 2019 22:25:42 +0900 Subject: NavigateUseCase TabPresenter --- src/background/presenters/TabPresenter.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/background/presenters') diff --git a/src/background/presenters/TabPresenter.ts b/src/background/presenters/TabPresenter.ts index 5e6e56e..ed88f26 100644 --- a/src/background/presenters/TabPresenter.ts +++ b/src/background/presenters/TabPresenter.ts @@ -36,7 +36,9 @@ export default class TabPresenter { return tabId; } - async getByKeyword(keyword: string, excludePinned: boolean = false): Promise { + async getByKeyword( + keyword: string, excludePinned: boolean = false, + ): Promise { let tabs = await browser.tabs.query({ currentWindow: true }); return tabs.filter((t) => { return t.url && t.url.toLowerCase().includes(keyword.toLowerCase()) || -- cgit v1.2.3