summaryrefslogtreecommitdiff
path: root/source/features/clean-repo-filelist-actions.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'source/features/clean-repo-filelist-actions.tsx')
-rw-r--r--source/features/clean-repo-filelist-actions.tsx9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/features/clean-repo-filelist-actions.tsx b/source/features/clean-repo-filelist-actions.tsx
index 647ca486..88a672af 100644
--- a/source/features/clean-repo-filelist-actions.tsx
+++ b/source/features/clean-repo-filelist-actions.tsx
@@ -38,12 +38,13 @@ function init(): void {
}
// This dropdown doesn't appear on `isSingleFile`
- const downloadIcon = select('get-repo .octicon-download');
- if (downloadIcon) {
+ // Remove `.octicon-download` in November
+ const codeIcon = select('get-repo :is(.octicon-code, .octicon-download)');
+ if (codeIcon) {
// Remove "Code" text next to it
- downloadIcon.nextSibling!.remove();
+ codeIcon.nextSibling!.remove();
- addTooltipToSummary(downloadIcon, 'Clone, open or download');
+ addTooltipToSummary(codeIcon, 'Clone, open or download');
}
},
});