summaryrefslogtreecommitdiff
path: root/source/features/clean-repo-tabs.tsx
diff options
context:
space:
mode:
authorGravatar Federico Brigante <me@fregante.com> 2022-07-05 17:47:24 +0700
committerGravatar GitHub <noreply@github.com> 2022-07-05 17:47:24 +0700
commitf79cce71bcf061254ec544b27a2be3baa13f141e (patch)
treebdcddc4d948b78d995bfb645b7553c53f4c9b54a /source/features/clean-repo-tabs.tsx
parent327747a5f1aff200955580ea8598a74cf17f7ee2 (diff)
downloadrefined-github-f79cce71bcf061254ec544b27a2be3baa13f141e.tar.gz
refined-github-f79cce71bcf061254ec544b27a2be3baa13f141e.tar.zst
refined-github-f79cce71bcf061254ec544b27a2be3baa13f141e.zip
Disable broken `more-dropdown-links` on mobile (#5782)
Diffstat (limited to 'source/features/clean-repo-tabs.tsx')
-rw-r--r--source/features/clean-repo-tabs.tsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/features/clean-repo-tabs.tsx b/source/features/clean-repo-tabs.tsx
index 54553a33..ef30d901 100644
--- a/source/features/clean-repo-tabs.tsx
+++ b/source/features/clean-repo-tabs.tsx
@@ -118,9 +118,11 @@ async function initProjects(): Promise<void | false> {
projectsTab!.remove();
}
-async function init(): Promise<void> {
+async function init(): Promise<void | false> {
// The user may have disabled `more-dropdown-links` so un-hide it
- await unhideOverflowDropdown();
+ if (!await unhideOverflowDropdown()) {
+ return false;
+ }
// Wait for the nav dropdown to be loaded #5244
await elementReady('.UnderlineNav-actions ul');