diff options
Diffstat (limited to 'source/features/copy-file.tsx')
-rw-r--r-- | source/features/copy-file.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/features/copy-file.tsx b/source/features/copy-file.tsx index 3cff95ab..6e7a500f 100644 --- a/source/features/copy-file.tsx +++ b/source/features/copy-file.tsx @@ -6,11 +6,11 @@ import {groupSiblings} from '../libs/group-buttons'; function init() { // This selector skips binaries + markdowns with code - for (const code of select.all<HTMLElement>('.file .blob-wrapper > .highlight:not(.rgh-copy-file)')) { + for (const code of select.all('.file .blob-wrapper > .highlight:not(.rgh-copy-file)')) { code.classList.add('rgh-copy-file'); const file = code.closest('.file'); - const content = select.all<HTMLElement>('.blob-code-inner', file) + const content = select.all('.blob-code-inner', file) .map(blob => blob.innerText) .map(line => line === '\n' ? '' : line) .join('\n'); |