summaryrefslogtreecommitdiff
path: root/source/features/repo-header-info.tsx
diff options
context:
space:
mode:
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}/>,
);