Skip to content

Commit

Permalink
move github init after app target setup
Browse files Browse the repository at this point in the history
  • Loading branch information
riknoll committed Nov 20, 2024
1 parent 8e5ceb6 commit ae95742
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 @@ -5963,11 +5963,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 ae95742

Please sign in to comment.