summaryrefslogtreecommitdiff
path: root/source/features/clean-repo-filelist-actions.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/clean-repo-filelist-actions.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/clean-repo-filelist-actions.tsx')
-rw-r--r--source/features/clean-repo-filelist-actions.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/features/clean-repo-filelist-actions.tsx b/source/features/clean-repo-filelist-actions.tsx
index 6daeaf4c..11bc1add 100644
--- a/source/features/clean-repo-filelist-actions.tsx
+++ b/source/features/clean-repo-filelist-actions.tsx
@@ -1,7 +1,7 @@
import React from 'dom-chef';
import select from 'select-dom';
import * as pageDetect from 'github-url-detection';
-import {PlusIcon, SearchIcon, CodeIcon} from '@primer/octicons-react';
+import {CodeIcon, PlusIcon, SearchIcon} from '@primer/octicons-react';
import observe from '../helpers/selector-observer.js';
import {assertNodeContent, wrap} from '../helpers/dom-utils.js';
@@ -60,6 +60,9 @@ void features.add(import.meta.url, {
pageDetect.isRepoTree,
pageDetect.isSingleFile,
],
+ exclude: [
+ pageDetect.isRepoFile404,
+ ],
init,
});