summaryrefslogtreecommitdiff
path: root/source/features/comment-on-draft-pr-indicator.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'source/features/comment-on-draft-pr-indicator.tsx')
-rw-r--r--source/features/comment-on-draft-pr-indicator.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/features/comment-on-draft-pr-indicator.tsx b/source/features/comment-on-draft-pr-indicator.tsx
index ae7d0239..66e3aa2b 100644
--- a/source/features/comment-on-draft-pr-indicator.tsx
+++ b/source/features/comment-on-draft-pr-indicator.tsx
@@ -2,7 +2,7 @@ import select from 'select-dom';
import * as pageDetect from 'github-url-detection';
import features from '.';
-import onReplacedElement from '../helpers/on-replaced-element';
+import onElementReplacement from '../helpers/on-element-replacement';
function addIndicator(button: HTMLElement): void {
button.classList.add('rgh-draft-pr-indicator');
@@ -22,7 +22,7 @@ function init(signal: AbortSignal): void {
if (pageDetect.isPRConversation()) {
// The button is part of a .js-updatable-content partial
- void onReplacedElement('#partial-new-comment-form-actions .btn-primary:not(.rgh-draft-pr-indicator)', addIndicator, {runCallbackOnStart: true, signal});
+ void onElementReplacement('#partial-new-comment-form-actions .btn-primary:not(.rgh-draft-pr-indicator)', addIndicator, {runCallbackOnStart: true, signal});
}
}