Skip to content

Commit 2e0a3c3

Browse files
committed
Fix return value when checking hostname
1 parent 52a7c8a commit 2e0a3c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/lib/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export async function getApiUrl() {
2626

2727
// TODO: Drop `api.github.com` check when dropping migrations
2828
if (origin === 'https://api.github.com' || origin === 'https://github.com') {
29-
return origin;
29+
return 'https://api.github.com';
3030
}
3131

3232
return `${origin}/api/v3`;

0 commit comments

Comments
 (0)