From c9bac7916f60dcd936c5b71fdbb8dea11894f452 Mon Sep 17 00:00:00 2001 From: Kid <44045911+kidonng@users.noreply.github.com> Date: Sat, 21 Aug 2021 21:48:16 +0800 Subject: Fix `clean-repo-filelist-actions` feature (#4684) --- source/features/clean-repo-filelist-actions.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'source/features/clean-repo-filelist-actions.tsx') 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'); } }, }); -- cgit v1.2.3