summaryrefslogtreecommitdiff
path: root/source/features/linkify-branch-refs.tsx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/features/linkify-branch-refs.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/features/linkify-branch-refs.tsx b/source/features/linkify-branch-refs.tsx
index b1e07a15..cc6254fa 100644
--- a/source/features/linkify-branch-refs.tsx
+++ b/source/features/linkify-branch-refs.tsx
@@ -1,9 +1,10 @@
import React from 'dom-chef';
import select from 'select-dom';
+import elementReady from 'element-ready';
import features from '../libs/features';
import * as pageDetect from '../libs/page-detect';
import {getOwnerAndRepo} from '../libs/utils';
-import {safeElementReady, wrap} from '../libs/dom-utils';
+import {wrap} from '../libs/dom-utils';
function inPR(): void {
let deletedBranch: string | undefined;
@@ -47,7 +48,7 @@ function inPR(): void {
}
async function inQuickPR(): Promise<void> {
- const el = await safeElementReady('.branch-name');
+ const el = await elementReady('.branch-name');
if (el) {
const {ownerName, repoName} = getOwnerAndRepo();
const branchUrl = `/${ownerName}/${repoName}/tree/${el.textContent}`;