diff options
author | 2021-01-02 00:16:23 -0600 | |
---|---|---|
committer | 2021-01-02 00:16:23 -0600 | |
commit | 334f38f0f12ce88a73e61478ded54693146f6c04 (patch) | |
tree | a2a12b7816a3d70fb8f0afeaa082da7281f76173 /source/features/link-to-file-in-file-history.tsx | |
parent | 23f05c1abff354f49175eecb14f0b08fbe5c22e8 (diff) | |
download | refined-github-334f38f0f12ce88a73e61478ded54693146f6c04.tar.gz refined-github-334f38f0f12ce88a73e61478ded54693146f6c04.tar.zst refined-github-334f38f0f12ce88a73e61478ded54693146f6c04.zip |
Meta: Infer better types in `querySelector` and `select-dom` (#3831)
Diffstat (limited to 'source/features/link-to-file-in-file-history.tsx')
-rw-r--r-- | source/features/link-to-file-in-file-history.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/features/link-to-file-in-file-history.tsx b/source/features/link-to-file-in-file-history.tsx index 906784e7..a7b41e71 100644 --- a/source/features/link-to-file-in-file-history.tsx +++ b/source/features/link-to-file-in-file-history.tsx @@ -13,7 +13,7 @@ function init(): void | false { return false; } - for (const rootLink of select.all<HTMLAnchorElement>('[aria-label="Browse the repository at this point in the history"]')) { + for (const rootLink of select.all('a[aria-label="Browse the repository at this point in the history"]')) { // `rootLink.pathname` points to /tree/ but GitHub automatically redirects to /blob/ when the path is of a file rootLink.before( <a |