blob: 5edddca73dfc53550c78f9d4db03c9bcdae3882f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
const getCompletions = (keyword) => {
return browser.tabs.query({ currentWindow: true }).then((tabs) => {
let matched = tabs.filter((t) => {
return t.url.includes(keyword) || t.title && t.title.includes(keyword);
});
return matched;
});
};
export { getCompletions };
|