diff options
author | 2019-02-13 14:23:03 +0800 | |
---|---|---|
committer | 2019-02-13 14:23:03 +0800 | |
commit | 7af18883aa400ab463d0c121be6fcf84c1cba142 (patch) | |
tree | cc1764cb4ee32e78fe0c7c8a6740514d8d97bd9f /source/features/linkify-branch-refs.tsx | |
parent | 38b53105f8ff8356140e80b49a7a85ca2e5589a2 (diff) | |
download | refined-github-7af18883aa400ab463d0c121be6fcf84c1cba142.tar.gz refined-github-7af18883aa400ab463d0c121be6fcf84c1cba142.tar.zst refined-github-7af18883aa400ab463d0c121be6fcf84c1cba142.zip |
Meta: Simplify select-dom usage
Thanks to https://github.com/bfred-it/select-dom/pull/5
Diffstat (limited to 'source/features/linkify-branch-refs.tsx')
-rw-r--r-- | source/features/linkify-branch-refs.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/features/linkify-branch-refs.tsx b/source/features/linkify-branch-refs.tsx index 9a71134b..7451a7c9 100644 --- a/source/features/linkify-branch-refs.tsx +++ b/source/features/linkify-branch-refs.tsx @@ -17,7 +17,7 @@ function inPR() { // Find the URLs first, some elements don't have titles const urls = new Map<string, string>(); - for (const el of select.all<HTMLElement>('.commit-ref[title], .base-ref[title], .head-ref[title]')) { + for (const el of select.all('.commit-ref[title], .base-ref[title], .head-ref[title]')) { const [repo, branch] = el.title.split(':'); const branchName = el.textContent.trim(); urls.set( @@ -32,7 +32,7 @@ function inPR() { } } - for (const el of select.all<HTMLElement>('.commit-ref')) { + for (const el of select.all('.commit-ref')) { const branchName = el.textContent.trim(); if (branchName !== 'unknown repository') { |