summaryrefslogtreecommitdiff
path: root/source/libs/utils.ts
diff options
context:
space:
mode:
authorGravatar arnaudvalle <arnaudvalle@users.noreply.github.com> 2020-02-28 09:31:16 +0100
committerGravatar GitHub <noreply@github.com> 2020-02-28 16:31:16 +0800
commit68e1523ed08c975b5aba5948178a907230701f44 (patch)
tree4b527e24876a57568acab0dfd9b6e9497b5a9c2c /source/libs/utils.ts
parent7a0bc0db1338b79cf500ffcd9a17f004d28b26d3 (diff)
downloadrefined-github-68e1523ed08c975b5aba5948178a907230701f44.tar.gz
refined-github-68e1523ed08c975b5aba5948178a907230701f44.tar.zst
refined-github-68e1523ed08c975b5aba5948178a907230701f44.zip
Don't show unnecessary `default-branch` after AJAX navigation (#2835)
Diffstat (limited to 'source/libs/utils.ts')
-rw-r--r--source/libs/utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libs/utils.ts b/source/libs/utils.ts
index 1cf5a1eb..0348690f 100644
--- a/source/libs/utils.ts
+++ b/source/libs/utils.ts
@@ -52,7 +52,7 @@ export const replaceBranch = (currentBranch: string, newBranch: string): string
};
export const getCurrentBranch = (): string => {
- return select<HTMLLinkElement>('link[rel="alternate"]')!
+ return select.last<HTMLLinkElement>('link[rel="alternate"]')!
.href
.split('/')
.slice(6)