summaryrefslogtreecommitdiff
path: root/source/features/quick-pr-diff-options.tsx
diff options
context:
space:
mode:
authorGravatar Kid <44045911+kidonng@users.noreply.github.com> 2021-11-04 00:45:42 +0800
committerGravatar GitHub <noreply@github.com> 2021-11-04 00:45:42 +0800
commit987ed604e7155a9e293c9079c81d76c45bc11a03 (patch)
tree332cda143b5930b9ab32d5c211a0f51192ecd77c /source/features/quick-pr-diff-options.tsx
parentec81dad85c306536f97a5dccafcd1de2f547cd14 (diff)
downloadrefined-github-987ed604e7155a9e293c9079c81d76c45bc11a03.tar.gz
refined-github-987ed604e7155a9e293c9079c81d76c45bc11a03.tar.zst
refined-github-987ed604e7155a9e293c9079c81d76c45bc11a03.zip
Hide duplicate `quick-pr-diff-options` buttons on commit and compare pages (#5031)
Diffstat (limited to 'source/features/quick-pr-diff-options.tsx')
-rw-r--r--source/features/quick-pr-diff-options.tsx4
1 files changed, 0 insertions, 4 deletions
diff --git a/source/features/quick-pr-diff-options.tsx b/source/features/quick-pr-diff-options.tsx
index d5165b65..813468ca 100644
--- a/source/features/quick-pr-diff-options.tsx
+++ b/source/features/quick-pr-diff-options.tsx
@@ -106,13 +106,9 @@ function initPR(): false | void {
function initCommitAndCompare(): false | void {
select('#toc')!.prepend(
<div className="float-right d-flex">
- <div className="d-flex ml-3 BtnGroup">{createDiffStyleToggle()}</div>
<div className="d-flex ml-3 BtnGroup">{createWhitespaceButton()}</div>
</div>,
);
-
- // Remove previous options UI
- select('[data-ga-load^="Diff, view"]')!.remove();
}
void features.add(__filebasename, {