summaryrefslogtreecommitdiff
path: root/source/features/use-first-commit-message-for-new-prs.tsx
diff options
context:
space:
mode:
authorGravatar Federico Brigante <me@fregante.com> 2021-04-20 16:34:44 +0700
committerGravatar GitHub <noreply@github.com> 2021-04-20 16:34:44 +0700
commit8879ebefcbabc9df2eff41a1864ccfff568040c0 (patch)
tree367cf5cf63476a4925d84fa421372d391e2e2172 /source/features/use-first-commit-message-for-new-prs.tsx
parentd87b2a5f65fe3bdbbdf25709f9073f664e24bc07 (diff)
downloadrefined-github-8879ebefcbabc9df2eff41a1864ccfff568040c0.tar.gz
refined-github-8879ebefcbabc9df2eff41a1864ccfff568040c0.tar.zst
refined-github-8879ebefcbabc9df2eff41a1864ccfff568040c0.zip
`fit-textareas`: Improve performance (#4222)
Diffstat (limited to 'source/features/use-first-commit-message-for-new-prs.tsx')
-rw-r--r--source/features/use-first-commit-message-for-new-prs.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/features/use-first-commit-message-for-new-prs.tsx b/source/features/use-first-commit-message-for-new-prs.tsx
index 372f35cc..56a91fb9 100644
--- a/source/features/use-first-commit-message-for-new-prs.tsx
+++ b/source/features/use-first-commit-message-for-new-prs.tsx
@@ -7,7 +7,7 @@ import features from '.';
import looseParseInt from '../helpers/loose-parse-int';
async function init(): Promise<void | false> {
- const commitCount = (await elementReady<HTMLElement>('div.Box.mb-3 .octicon-git-commit'))?.nextElementSibling;
+ const commitCount = (await elementReady('div.Box.mb-3 .octicon-git-commit'))?.nextElementSibling;
if (!commitCount || looseParseInt(commitCount) < 2 || !select.exists('#new_pull_request')) {
return false;
}