summaryrefslogtreecommitdiff
path: root/source/features/pr-commit-lines-changed.tsx
diff options
context:
space:
mode:
authorGravatar Federico <me@fregante.com> 2020-12-28 00:40:37 -0600
committerGravatar GitHub <noreply@github.com> 2020-12-28 00:40:37 -0600
commit5251db67c5ef2a2011a6d8c57cafddaca186f48f (patch)
tree82c6e7eecee9f6539a78fa9e8b2abbd27d074cd1 /source/features/pr-commit-lines-changed.tsx
parentcbb09111ff650f08f1d132142f65c4634626bd75 (diff)
downloadrefined-github-5251db67c5ef2a2011a6d8c57cafddaca186f48f.tar.gz
refined-github-5251db67c5ef2a2011a6d8c57cafddaca186f48f.tar.zst
refined-github-5251db67c5ef2a2011a6d8c57cafddaca186f48f.zip
Meta: Update `element-ready` (#3849)
Diffstat (limited to 'source/features/pr-commit-lines-changed.tsx')
-rw-r--r--source/features/pr-commit-lines-changed.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/features/pr-commit-lines-changed.tsx b/source/features/pr-commit-lines-changed.tsx
index c5d7ac10..feabba0e 100644
--- a/source/features/pr-commit-lines-changed.tsx
+++ b/source/features/pr-commit-lines-changed.tsx
@@ -28,7 +28,7 @@ async function init(): Promise<void> {
const commitSha = location.pathname.split('/').pop()!;
const [additions, deletions] = await getCommitChanges(commitSha);
const tooltip = pluralize(additions + deletions, '1 line changed', '$$ lines changed');
- const diffstat = await elementReady('.diffstat');
+ const diffstat = await elementReady('.diffstat', {waitForChildren: false});
diffstat!.replaceWith(
<span className="ml-2 diffstat tooltipped tooltipped-s" aria-label={tooltip}>
<span className="text-green">+{additions}</span>{' '}