Skip to content

Commit

Permalink
fix: replace console.debug with console.log in initializer example.
Browse files Browse the repository at this point in the history
  • Loading branch information
airblast-dev authored and ctron committed Mar 27, 2024
1 parent 38bd2b4 commit 5198f33
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/initializer/src/initializer.mjs
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
export default function myInitializer () {
return {
onStart: () => {
console.debug("Loading...");
console.log("Loading...");
console.time("trunk-initializer");
},
onProgress: ({current, total}) => {
if (!total) {
console.debug("Loading...", current, "bytes");
console.log("Loading...", current, "bytes");
} else {
console.debug("Loading...", Math.round((current/total) * 100), "%" )
console.log("Loading...", Math.round((current/total) * 100), "%" )
}
},
onComplete: () => {
console.debug("Loading... done!");
console.log("Loading... done!");
console.timeEnd("trunk-initializer");
},
onSuccess: (wasm) => {
console.debug("Loading... successful!");
console.debug("WebAssembly: ", wasm);
console.log("Loading... successful!");
console.log("WebAssembly: ", wasm);
},
onFailure: (error) => {
console.warn("Loading... failed!", error);
Expand Down

0 comments on commit 5198f33

Please sign in to comment.