From 357aab514ee1cbcd0e61c3220cff20c7c8a197be Mon Sep 17 00:00:00 2001 From: Anush Date: Fri, 21 Apr 2023 20:16:46 +0530 Subject: [PATCH] fix: Wrapped the await call in an async() (#26) --- src/content-scripts/profileScreen.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/content-scripts/profileScreen.ts b/src/content-scripts/profileScreen.ts index 093a0799..ffce56e7 100644 --- a/src/content-scripts/profileScreen.ts +++ b/src/content-scripts/profileScreen.ts @@ -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();