summaryrefslogtreecommitdiff
path: root/source/features/default-branch-button.tsx
diff options
context:
space:
mode:
authorGravatar Philipp Beck <dertieran@gmail.com> 2021-08-04 13:31:01 +0200
committerGravatar GitHub <noreply@github.com> 2021-08-04 18:31:01 +0700
commitc201bf251385f36d756438329ca5dfe2109c1883 (patch)
treea31bc70aa389f6f54ada38015f1ec441e0a07f12 /source/features/default-branch-button.tsx
parent48852f0ab4bfdf60b41531d2d3dbe24a5dd6dc6c (diff)
downloadrefined-github-c201bf251385f36d756438329ca5dfe2109c1883.tar.gz
refined-github-c201bf251385f36d756438329ca5dfe2109c1883.tar.zst
refined-github-c201bf251385f36d756438329ca5dfe2109c1883.zip
Use AJAX navigation for `default-branch-button` (#4631)
Diffstat (limited to 'source/features/default-branch-button.tsx')
-rw-r--r--source/features/default-branch-button.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/features/default-branch-button.tsx b/source/features/default-branch-button.tsx
index d9f7f12f..c8bcac9f 100644
--- a/source/features/default-branch-button.tsx
+++ b/source/features/default-branch-button.tsx
@@ -37,6 +37,7 @@ async function init(): Promise<false | void> {
<a
className="btn tooltipped tooltipped-ne rgh-default-branch-button"
href={String(url)}
+ data-pjax="#repo-content-pjax-container"
aria-label="See this view on the default branch"
>
<ChevronLeftIcon/>