Skip to content

Commit a91ab12

Browse files
authored
Limit remove-diff-signs to diff tables (refined-github#1334)
and not in any nested code view
1 parent 990871b commit a91ab12

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/features/remove-diff-signs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import select from 'select-dom';
33
import observeEl from '../libs/simplified-element-observer';
44

55
function removeDiffSigns() {
6-
for (const line of select.all('.diff-table tr:not(.refined-github-diff-signs)')) {
6+
for (const line of select.all('.diff-table > tbody > tr:not(.refined-github-diff-signs)')) {
77
line.classList.add('refined-github-diff-signs');
88
for (const code of select.all('.blob-code-inner', line)) {
99
// Drop -, + or space

0 commit comments

Comments
 (0)