summaryrefslogtreecommitdiff
path: root/source/features/copy-file.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'source/features/copy-file.tsx')
-rw-r--r--source/features/copy-file.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/features/copy-file.tsx b/source/features/copy-file.tsx
index c0b2e9ca..91bd188c 100644
--- a/source/features/copy-file.tsx
+++ b/source/features/copy-file.tsx
@@ -45,13 +45,13 @@ function init(): void {
}
void features.add(__filebasename, {
+ asLongAs: [
+ () => select.exists('table.highlight'), // Rendered page
+ ],
include: [
pageDetect.isSingleFile,
pageDetect.isGist,
],
- exclude: [
- () => !select.exists('table.highlight'), // Rendered page
- ],
deduplicate: '.rgh-copy-file', // #3945
init,
});