Skip to content

Commit

Permalink
refactor(index.page.tsx): move worker initialization and contract set…
Browse files Browse the repository at this point in the history
…up into seperate function
  • Loading branch information
ymekuria committed Sep 22, 2024
1 parent 03cfbd9 commit fa625ca
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function Home() {
});
}

(async () => {
async function setup() {
if (!state.hasBeenSetup) {
setDisplayText('Loading web worker...');
console.log('Loading web worker...');
Expand Down Expand Up @@ -103,7 +103,9 @@ export default function Home() {
currentNum,
});
}
})();
};

setup();
}, []);

// -------------------------------------------------------
Expand Down

0 comments on commit fa625ca

Please sign in to comment.