diff options
Diffstat (limited to 'source/features/clean-repo-tabs.tsx')
-rw-r--r-- | source/features/clean-repo-tabs.tsx | 6 |
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'); |