summaryrefslogtreecommitdiff
path: root/source/features/toggle-files-button.tsx
diff options
context:
space:
mode:
authorGravatar 오지환 (Cooper) <cooper@chequer.io> 2023-08-28 18:30:29 +0900
committerGravatar GitHub <noreply@github.com> 2023-08-28 09:30:29 +0000
commitaa9d746180b8d5a96307ae311d5a7adeee73feaa (patch)
tree0aa6c13709d009e766434ef9cbcc0840d3e4c60e /source/features/toggle-files-button.tsx
parent2fb92175fd25c3a4cf702aaf39e7ccaef9c86679 (diff)
downloadrefined-github-aa9d746180b8d5a96307ae311d5a7adeee73feaa.tar.gz
refined-github-aa9d746180b8d5a96307ae311d5a7adeee73feaa.tar.zst
refined-github-aa9d746180b8d5a96307ae311d5a7adeee73feaa.zip
Enable `useful-not-found-page` on the new "404 file" page (#6840)
Co-authored-by: Federico Brigante <me@fregante.com>
Diffstat (limited to 'source/features/toggle-files-button.tsx')
-rw-r--r--source/features/toggle-files-button.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/features/toggle-files-button.tsx b/source/features/toggle-files-button.tsx
index 947bac75..40c8ee39 100644
--- a/source/features/toggle-files-button.tsx
+++ b/source/features/toggle-files-button.tsx
@@ -87,6 +87,9 @@ void features.add(import.meta.url, {
include: [
pageDetect.isRepoTree,
],
+ exclude: [
+ pageDetect.isRepoFile404,
+ ],
init,
});