summaryrefslogtreecommitdiff
path: root/source/features/repo-header-info.tsx
diff options
context:
space:
mode:
authorGravatar Federico Brigante <me@fregante.com> 2023-11-01 12:24:19 +0800
committerGravatar GitHub <noreply@github.com> 2023-11-01 04:24:19 +0000
commitae6ca57b45b4e4ad201793b8dc7f3535c43de976 (patch)
tree679608ff74b842731d0a1ce8591d2c17dd727010 /source/features/repo-header-info.tsx
parent4a9e021202ceb76962d08d70ecab2ec9becab8d9 (diff)
downloadrefined-github-ae6ca57b45b4e4ad201793b8dc7f3535c43de976.tar.gz
refined-github-ae6ca57b45b4e4ad201793b8dc7f3535c43de976.tar.zst
refined-github-ae6ca57b45b4e4ad201793b8dc7f3535c43de976.zip
Meta: Use new `select-dom` API (#6992)
Diffstat (limited to 'source/features/repo-header-info.tsx')
-rw-r--r--source/features/repo-header-info.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/features/repo-header-info.tsx b/source/features/repo-header-info.tsx
index 56963078..1942f22a 100644
--- a/source/features/repo-header-info.tsx
+++ b/source/features/repo-header-info.tsx
@@ -1,7 +1,7 @@
import * as pageDetect from 'github-url-detection';
import {LockIcon, RepoForkedIcon, StarIcon} from '@primer/octicons-react';
import React from 'dom-chef';
-import select from 'select-dom';
+import {elementExists} from 'select-dom';
import {CachedFunction} from 'webext-storage-cache';
import observe from '../helpers/selector-observer.js';
@@ -31,14 +31,14 @@ async function add(repoLink: HTMLAnchorElement): Promise<void> {
const {isFork, isPrivate, stargazerCount} = await repositoryInfo.get();
// GitHub may already show this icon natively, so we match its position
- if (isPrivate && !select.exists('.octicon-lock', repoLink)) {
+ if (isPrivate && !elementExists('.octicon-lock', repoLink)) {
repoLink.append(
<LockIcon className="ml-1" width={12} height={12}/>,
);
}
// GitHub may already show this icon natively, so we match its position
- if (isFork && !select.exists('.octicon-repo-forked', repoLink)) {
+ if (isFork && !elementExists('.octicon-repo-forked', repoLink)) {
repoLink.append(
<RepoForkedIcon className="ml-1" width={12} height={12}/>,
);