aboutsummaryrefslogtreecommitdiff
path: root/src/background
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2020-04-30 19:23:23 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2020-05-02 12:55:42 +0900
commit75abd90ecb8201ad845b266f96220d8adfe19b2d (patch)
treeaee5efe52412855f620cb514a13a2c14373f27b7 /src/background
parentb0fe06bc2e739cc252a559f666da65b27769959d (diff)
Remove tab completion limitation
Diffstat (limited to 'src/background')
-rw-r--r--src/background/completion/impl/TabRepositoryImpl.ts3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/background/completion/impl/TabRepositoryImpl.ts b/src/background/completion/impl/TabRepositoryImpl.ts
index d16d4c3..5e33e5a 100644
--- a/src/background/completion/impl/TabRepositoryImpl.ts
+++ b/src/background/completion/impl/TabRepositoryImpl.ts
@@ -1,7 +1,5 @@
import TabRepository, { Tab } from "../TabRepository";
-const COMPLETION_ITEM_LIMIT = 10;
-
export default class TabRepositoryImpl implements TabRepository {
async queryTabs(query: string, excludePinned: boolean): Promise<Tab[]> {
const tabs = await browser.tabs.query({ currentWindow: true });
@@ -16,7 +14,6 @@ export default class TabRepositoryImpl implements TabRepository {
return !(excludePinned && t.pinned);
})
.filter((item) => item.id && item.title && item.url)
- .slice(0, COMPLETION_ITEM_LIMIT)
.map(TabRepositoryImpl.toEntity);
}