summaryrefslogtreecommitdiff
path: root/source/features/highlight-deleted-and-added-files-in-diffs.tsx
diff options
context:
space:
mode:
authorGravatar Federico Brigante <me@fregante.com> 2021-10-04 13:40:49 +0200
committerGravatar GitHub <noreply@github.com> 2021-10-04 13:40:49 +0200
commitd3bc037b7b574b6bfa8f175ea35aed1b55e92bbb (patch)
tree2e18fd044945985ce72407db83aa930549cc0281 /source/features/highlight-deleted-and-added-files-in-diffs.tsx
parentc1f3484bf9d6aaf9e991187b0bb06decf52cd30d (diff)
downloadrefined-github-d3bc037b7b574b6bfa8f175ea35aed1b55e92bbb.tar.gz
refined-github-d3bc037b7b574b6bfa8f175ea35aed1b55e92bbb.tar.zst
refined-github-d3bc037b7b574b6bfa8f175ea35aed1b55e92bbb.zip
Drop fallback code for old GitHub Enterprise versions (#4864)
Diffstat (limited to 'source/features/highlight-deleted-and-added-files-in-diffs.tsx')
-rw-r--r--source/features/highlight-deleted-and-added-files-in-diffs.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/features/highlight-deleted-and-added-files-in-diffs.tsx b/source/features/highlight-deleted-and-added-files-in-diffs.tsx
index 759d6454..4f97af35 100644
--- a/source/features/highlight-deleted-and-added-files-in-diffs.tsx
+++ b/source/features/highlight-deleted-and-added-files-in-diffs.tsx
@@ -43,9 +43,9 @@ async function init(): Promise<void | false> {
const icon = sourceIcon.cloneNode(true);
const action = icon.getAttribute('title')!;
if (action === 'added') {
- icon.classList.add('text-green', 'color-text-success');
+ icon.classList.add('color-text-success');
} else if (action === 'removed') {
- icon.classList.add('text-red', 'color-text-danger');
+ icon.classList.add('color-text-danger');
} else {
return;
}