diff options
author | 2023-05-11 05:28:40 +0800 | |
---|---|---|
committer | 2023-05-10 21:28:40 +0000 | |
commit | 48658675d7bbb3ecd5e3a51df0447b65bb0b1219 (patch) | |
tree | d70832506df4326c612f721b1c6c496513db0eac /source/features/default-branch-button.tsx | |
parent | 358edc207f72fb01a32c916c28b90839359c662a (diff) | |
download | refined-github-0b79211aa9a9c39b16526ab85bf6ab319f8ae5c1.tar.gz refined-github-0b79211aa9a9c39b16526ab85bf6ab319f8ae5c1.tar.zst refined-github-0b79211aa9a9c39b16526ab85bf6ab319f8ae5c1.zip |
Improve reliability of `list-prs-for-branch` (#6641)23.5.10
Diffstat (limited to 'source/features/default-branch-button.tsx')
-rw-r--r-- | source/features/default-branch-button.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/features/default-branch-button.tsx b/source/features/default-branch-button.tsx index eb9258df..866f80c8 100644 --- a/source/features/default-branch-button.tsx +++ b/source/features/default-branch-button.tsx @@ -10,6 +10,7 @@ import getDefaultBranch from '../github-helpers/get-default-branch.js'; import observe from '../helpers/selector-observer.js'; import {branchSelector} from '../github-helpers/selectors.js'; import isDefaultBranch from '../github-helpers/is-default-branch.js'; +import {isRepoCommitListRoot} from '../github-helpers/index.js'; async function add(branchSelector: HTMLElement): Promise<void> { // Don't show the button if we’re already on the default branch @@ -55,7 +56,7 @@ void features.add(import.meta.url, { include: [ pageDetect.isRepoTree, pageDetect.isSingleFile, - pageDetect.isRepoCommitList, + isRepoCommitListRoot, ], exclude: [ pageDetect.isRepoHome, |