Skip to content

Commit

Permalink
Enable faster-pr-diff-options on compare pages (#3874)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheap-glitch committed Jan 9, 2021
1 parent b012633 commit 697c26f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/features/faster-pr-diff-options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function createWhitespaceButton(): HTMLElement {
}

function wrap(...elements: Node[]): DocumentFragment {
if (pageDetect.isSingleCommit()) {
if (pageDetect.isSingleCommit() || pageDetect.isCompare()) {
return (
<div className="float-right">
{elements.map(element => <div className="ml-3 BtnGroup">{element}</div>)}
Expand Down Expand Up @@ -110,7 +110,8 @@ function init(): false | void {
void features.add(__filebasename, {
include: [
// Disabled because of #2291 // pageDetect.isPRFiles
pageDetect.isCommit
pageDetect.isCommit,
pageDetect.isCompare
],
shortcuts: {
'd w': 'Show/hide whitespaces in diffs'
Expand Down

0 comments on commit 697c26f

Please sign in to comment.