summaryrefslogtreecommitdiff
path: root/source/libs/utils.ts
diff options
context:
space:
mode:
authorGravatar Federico Brigante <github@bfred.it> 2020-03-16 15:15:49 +0100
committerGravatar GitHub <noreply@github.com> 2020-03-16 15:15:49 +0100
commit3ac1076a12ec268ab175c85360701b701a62ba6a (patch)
tree5f4efe3464f6361035724ca79ec70ab96f6a0304 /source/libs/utils.ts
parent4f25a67d0688afe55c85f95f1ca720c172553150 (diff)
downloadrefined-github-3ac1076a12ec268ab175c85360701b701a62ba6a.tar.gz
refined-github-3ac1076a12ec268ab175c85360701b701a62ba6a.tar.zst
refined-github-3ac1076a12ec268ab175c85360701b701a62ba6a.zip
Improve `forked-to` reliability (#2892)
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 8f0729e0..c77bbc7c 100644
--- a/source/libs/utils.ts
+++ b/source/libs/utils.ts
@@ -74,7 +74,7 @@ export const getCurrentBranch = (): string => {
export const isFirefox = navigator.userAgent.includes('Firefox/');
-export const getRepoURL = (): string => location.pathname.slice(1).split('/', 2).join('/');
+export const getRepoURL = (): string => location.pathname.slice(1).split('/', 2).join('/').toLowerCase();
export const getRepoGQL = (): string => {
const {ownerName, repoName} = getOwnerAndRepo();
return `owner: "${ownerName!}", name: "${repoName!}"`;