summaryrefslogtreecommitdiff
path: root/source/features/linkify-branch-refs.tsx
diff options
context:
space:
mode:
authorGravatar Federico Brigante <github@bfred.it> 2019-05-28 13:56:27 +0800
committerGravatar Federico Brigante <github@bfred.it> 2019-05-28 13:56:27 +0800
commit6f0864f9b73568f46d7f2019d8ae54cad5b67bc8 (patch)
tree45219ddc04eab8a994beb5039c95b8332688749b /source/features/linkify-branch-refs.tsx
parent44c3bf314b655b31e23ab36aeead8077a2a8bf93 (diff)
downloadrefined-github-6f0864f9b73568f46d7f2019d8ae54cad5b67bc8.tar.gz
refined-github-6f0864f9b73568f46d7f2019d8ae54cad5b67bc8.tar.zst
refined-github-6f0864f9b73568f46d7f2019d8ae54cad5b67bc8.zip
Update `element-ready`
Diffstat (limited to 'source/features/linkify-branch-refs.tsx')
-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}`;