diff options
| author | 2023-11-01 12:24:19 +0800 | |
|---|---|---|
| committer | 2023-11-01 04:24:19 +0000 | |
| commit | ae6ca57b45b4e4ad201793b8dc7f3535c43de976 (patch) | |
| tree | 679608ff74b842731d0a1ce8591d2c17dd727010 /source/github-helpers/dom-formatters.tsx | |
| parent | 4a9e021202ceb76962d08d70ecab2ec9becab8d9 (diff) | |
| download | refined-github-ae6ca57b45b4e4ad201793b8dc7f3535c43de976.tar.gz refined-github-ae6ca57b45b4e4ad201793b8dc7f3535c43de976.tar.zst refined-github-ae6ca57b45b4e4ad201793b8dc7f3535c43de976.zip | |
Meta: Use new `select-dom` API (#6992)
Diffstat (limited to 'source/github-helpers/dom-formatters.tsx')
| -rw-r--r-- | source/github-helpers/dom-formatters.tsx | 6 |
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, { |
