Skip to content

Commit

Permalink
Updated buildPanel call to reflect async function type
Browse files Browse the repository at this point in the history
  • Loading branch information
maxxcrawford committed Dec 31, 2019
1 parent e2868d2 commit 434168a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ const handleOnboardingClicks = async(e, res) => {
if (el.classList.contains("btn-return")) {
let currentPanel = await browser.storage.local.get("CURRENT_PANEL");
currentPanel = currentPanel["CURRENT_PANEL"];
buildPanel(currentPanel);
await buildPanel(currentPanel);
}
};

Expand Down Expand Up @@ -298,7 +298,7 @@ document.addEventListener("DOMContentLoaded", async () => {

const onboarding = (currentPanel.includes("onboarding"));
if (!onboarding) {
return buildPanel(currentPanel);
return await buildPanel(currentPanel);
}
buildOnboardingPanel(1);
});
Expand Down

0 comments on commit 434168a

Please sign in to comment.