Skip to content

Commit

Permalink
Prevent patch-diff-links from being AJAXed (#5339)
Browse files Browse the repository at this point in the history
  • Loading branch information
kidonng committed Jan 29, 2022
1 parent 8ed65a6 commit ecb1769
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/features/patch-diff-links.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ function init(): void {
}

select('.commit-meta > :last-child')!.append(
<span className="sha-block patch-diff-links">
<a href={`${commitUrl}.patch`} className="sha">patch</a>
<span className="sha-block">
<a data-skip-pjax href={`${commitUrl}.patch`} className="sha">patch</a>
{ ' ' /* Workaround for: JSX eats whitespace between elements */ }
<a href={`${commitUrl}.diff`} className="sha">diff</a>
<a data-skip-pjax href={`${commitUrl}.diff`} className="sha">diff</a>
</span>,
);
}
Expand Down

0 comments on commit ecb1769

Please sign in to comment.