diff options
author | 2020-03-16 15:15:49 +0100 | |
---|---|---|
committer | 2020-03-16 15:15:49 +0100 | |
commit | 3ac1076a12ec268ab175c85360701b701a62ba6a (patch) | |
tree | 5f4efe3464f6361035724ca79ec70ab96f6a0304 /source/libs/utils.ts | |
parent | 4f25a67d0688afe55c85f95f1ca720c172553150 (diff) | |
download | refined-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.ts | 2 |
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!}"`; |