Skip to content

Commit

Permalink
fix: revert https protocol, http not available
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Mar 12, 2021
1 parent e48994a commit fe9dee9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ui/components/src/GithubAvatar/useGithubProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ export const useGithubProfile = ({
login: username,
email: useremail,
avatar_url: useremail
? `//www.gravatar.com/avatar/${md5(useremail)}?s=${size}`
: `//github.com/${username}`,
? `https://www.gravatar.com/avatar/${md5(useremail)}?s=${size}`
: `https://github.com/${username}`,
},
);
useEffect(() => {
Expand All @@ -64,7 +64,7 @@ export const useGithubProfile = ({
}
: undefined;
const fetchData = async () => {
fetch(`//api.github.com/users/${encodeURIComponent(username)}`, {
fetch(`https://api.github.com/users/${encodeURIComponent(username)}`, {
headers,
})
.then(res => res.json())
Expand All @@ -76,7 +76,7 @@ export const useGithubProfile = ({
// could not find
profilesCache[username] = profile;
fetch(
`//api.github.com/search/users?q=${encodeURIComponent(
`https://api.github.com/search/users?q=${encodeURIComponent(
`${username} in:name`,
)}`,
{
Expand All @@ -100,7 +100,7 @@ export const useGithubProfile = ({
);
if (match) {
fetch(
`//api.github.com/users/${encodeURIComponent(
`https://api.github.com/users/${encodeURIComponent(
match.login,
)}`,
{
Expand Down

0 comments on commit fe9dee9

Please sign in to comment.