Skip to content

Commit

Permalink
fix: Wrapped the await call in an async() (open-sauced#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anush008 authored Apr 21, 2023
1 parent 0c8f222 commit 357aab5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/content-scripts/profileScreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ import { getOpenSaucedUser } from "../utils/fetchOpenSaucedApiData";
import injectViewOnOpenSauced from "../utils/dom-utils/viewOnOpenSauced";
import injectInviteToOpenSauced from "../utils/dom-utils/inviteToOpenSauced";

const processProfilePage = async () => {
const username = getGithubUsername(window.location.href);
if (username != null) {
const openSaucedUser = await getOpenSaucedUser(username);
if (openSaucedUser) injectViewOnOpenSauced(username);
else injectInviteToOpenSauced(username);
}
};
processProfilePage();

0 comments on commit 357aab5

Please sign in to comment.