Skip to content

Commit

Permalink
code: use wildcard in url pattern match
Browse files Browse the repository at this point in the history
  • Loading branch information
xstelea committed Oct 2, 2024
1 parent 3060d4b commit de74a9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chrome/helpers/get-tabs-by-origin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { ResultAsync } from 'neverthrow'
export const getTabsByOrigin = (origin: string) =>
ResultAsync.fromPromise(
// url pattern match requires a trailing slash
chrome.tabs.query({ url: `${origin}/` }),
chrome.tabs.query({ url: `${origin}/*` }),
(err) => err as Error,
)

0 comments on commit de74a9f

Please sign in to comment.