Skip to content

Commit

Permalink
move github init after app target setup (#10284)
Browse files Browse the repository at this point in the history
  • Loading branch information
riknoll committed Jan 21, 2025
1 parent e317ed1 commit 7892021
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webapp/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5924,11 +5924,12 @@ document.addEventListener("DOMContentLoaded", async () => {
pxt.blocks.showBlockIdInTooltip = true;
}

initGitHubDb();

pxt.perf.measureStart("setAppTarget");
pkg.setupAppTarget((window as any).pxtTargetBundle);

initGitHubDb();

// DO NOT put any async code before this line! The serviceworker must be initialized before
// the window load event fires
appcache.init(() => theEditor.reloadEditor());
Expand Down

0 comments on commit 7892021

Please sign in to comment.