summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Dong Shin <d0104.shin@gmail.com> 2019-02-27 01:07:02 +0900
committerGravatar Federico Brigante <github@bfred.it> 2019-02-27 00:07:02 +0800
commitc6c72c4562ef42d4d94a9ab502aaa52c73ecd03e (patch)
tree6ef36cddb3acf1820fa776f042a2473a00ad5bf5
parentebebe53e29d95fe63cb2813bbfde79bfc5f9824c (diff)
downloadrefined-github-c6c72c4562ef42d4d94a9ab502aaa52c73ecd03e.tar.gz
refined-github-c6c72c4562ef42d4d94a9ab502aaa52c73ecd03e.tar.zst
refined-github-c6c72c4562ef42d4d94a9ab502aaa52c73ecd03e.zip
Fix GitHub Enterprise GraphQL endpoint (#1812)
-rw-r--r--source/libs/api.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libs/api.ts b/source/libs/api.ts
index 5858a191..5b2fbbfe 100644
--- a/source/libs/api.ts
+++ b/source/libs/api.ts
@@ -49,7 +49,7 @@ const api3 = location.hostname === 'github.com' ?
`${location.origin}/api/v3/`;
const api4 = location.hostname === 'github.com' ?
'https://api.github.com/graphql' :
- `${location.origin}/api/graphql/`;
+ `${location.origin}/api/graphql`;
function fetch3(query: string, personalToken: string) {
const headers: HeadersInit = {