From ecb1769a7b37acd172917860e62356acd3569469 Mon Sep 17 00:00:00 2001
From: Kid <44045911+kidonng@users.noreply.github.com>
Date: Sun, 30 Jan 2022 00:47:47 +0800
Subject: Prevent `patch-diff-links` from being AJAXed (#5339)

---
 source/features/patch-diff-links.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'source/features/patch-diff-links.tsx')

diff --git a/source/features/patch-diff-links.tsx b/source/features/patch-diff-links.tsx
index 04867c0d..1c434a3c 100644
--- a/source/features/patch-diff-links.tsx
+++ b/source/features/patch-diff-links.tsx
@@ -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>,
 	);
 }
-- 
cgit v1.2.3

