summaryrefslogtreecommitdiff
path: root/source/features/more-dropdown-links.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/more-dropdown-links.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/more-dropdown-links.tsx')
-rw-r--r--source/features/more-dropdown-links.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/features/more-dropdown-links.tsx b/source/features/more-dropdown-links.tsx
index cd2451fd..2c10626d 100644
--- a/source/features/more-dropdown-links.tsx
+++ b/source/features/more-dropdown-links.tsx
@@ -1,6 +1,6 @@
import './more-dropdown-links.css';
import React from 'dom-chef';
-import select from 'select-dom';
+import {elementExists} from 'select-dom';
import elementReady from 'element-ready';
import * as pageDetect from 'github-url-detection';
@@ -15,7 +15,7 @@ export async function unhideOverflowDropdown(): Promise<boolean> {
const repoNavigationBar = await elementReady('.UnderlineNav-body');
// No dropdown on mobile #5781
- if (!select.exists('.js-responsive-underlinenav')) {
+ if (!elementExists('.js-responsive-underlinenav')) {
return false;
}
@@ -50,7 +50,7 @@ void features.add(import.meta.url, {
pageDetect.isEmptyRepo,
// No dropdown on mobile #5781
- () => !select.exists('.js-responsive-underlinenav'),
+ () => !elementExists('.js-responsive-underlinenav'),
],
deduplicate: 'has-rgh',
awaitDomReady: true, // DOM-based filter