summaryrefslogtreecommitdiff
path: root/source/github-helpers/dom-formatters.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'source/github-helpers/dom-formatters.tsx')
-rw-r--r--source/github-helpers/dom-formatters.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/github-helpers/dom-formatters.tsx b/source/github-helpers/dom-formatters.tsx
index d764498b..ca19d5f7 100644
--- a/source/github-helpers/dom-formatters.tsx
+++ b/source/github-helpers/dom-formatters.tsx
@@ -1,5 +1,5 @@
import React from 'dom-chef';
-import select from 'select-dom';
+import {$$, elementExists} from 'select-dom';
import zipTextNodes from 'zip-text-nodes';
import {applyToLink} from 'shorten-repo-url';
import linkifyURLsCore from 'linkify-urls';
@@ -68,8 +68,8 @@ export function linkifyURLs(element: Element): Element[] | void {
return;
}
- if (select.exists(linkifiedURLSelector, element)) {
- return select.all(linkifiedURLSelector, element);
+ if (elementExists(linkifiedURLSelector, element)) {
+ return $$(linkifiedURLSelector, element);
}
const linkified = linkifyURLsCore(element.textContent, {