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 authored Jan 17, 2025
1 parent 332a71d commit 327ab19
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 @@ -5970,11 +5970,12 @@ document.addEventListener("DOMContentLoaded", async () => {
pxt.blocks.showBlockIdInTooltip = true;
}

initGitHubDb();

pxt.perf.measureStart(Measurements.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 327ab19

Please sign in to comment.