diff options
author | 2020-06-08 01:28:18 +0200 | |
---|---|---|
committer | 2020-06-08 01:28:18 +0200 | |
commit | 2ae219699ca7cb020193d382b7119290ff593389 (patch) | |
tree | 036758170c5291a7639e84d6d8cf6996934a0918 /source/features/remove-upload-files-button.tsx | |
parent | 62b69a571f9e43c07b7e18911226e4f6467b9829 (diff) | |
download | refined-github-2ae219699ca7cb020193d382b7119290ff593389.tar.gz refined-github-2ae219699ca7cb020193d382b7119290ff593389.tar.zst refined-github-2ae219699ca7cb020193d382b7119290ff593389.zip |
Disable `remove-upload-files-button` in "Repository refresh" beta (#3194)
Diffstat (limited to 'source/features/remove-upload-files-button.tsx')
-rw-r--r-- | source/features/remove-upload-files-button.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/features/remove-upload-files-button.tsx b/source/features/remove-upload-files-button.tsx index 01e66cf7..5196e417 100644 --- a/source/features/remove-upload-files-button.tsx +++ b/source/features/remove-upload-files-button.tsx @@ -5,7 +5,8 @@ import features from '.'; import {getRepoURL} from '../github-helpers'; function init(): void { - select(`.file-navigation a[href^="/${getRepoURL()}/upload"]`)?.remove(); + // In "Repository refresh" layout, it's part of an "Add file" dropdown, don't delete it there + select(`.file-navigation a[href^="/${getRepoURL()}/upload"]:not(.dropdown-item)`)?.remove(); } void features.add({ @@ -16,6 +17,5 @@ void features.add({ include: [ pageDetect.isRepoTree ], - repeatOnAjax: false, init }); |