Skip to content

Commit 5198f33

Browse files
airblast-devctron
authored andcommitted
fix: replace console.debug with console.log in initializer example.
1 parent 38bd2b4 commit 5198f33

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/initializer/src/initializer.mjs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
export default function myInitializer () {
22
return {
33
onStart: () => {
4-
console.debug("Loading...");
4+
console.log("Loading...");
55
console.time("trunk-initializer");
66
},
77
onProgress: ({current, total}) => {
88
if (!total) {
9-
console.debug("Loading...", current, "bytes");
9+
console.log("Loading...", current, "bytes");
1010
} else {
11-
console.debug("Loading...", Math.round((current/total) * 100), "%" )
11+
console.log("Loading...", Math.round((current/total) * 100), "%" )
1212
}
1313
},
1414
onComplete: () => {
15-
console.debug("Loading... done!");
15+
console.log("Loading... done!");
1616
console.timeEnd("trunk-initializer");
1717
},
1818
onSuccess: (wasm) => {
19-
console.debug("Loading... successful!");
20-
console.debug("WebAssembly: ", wasm);
19+
console.log("Loading... successful!");
20+
console.log("WebAssembly: ", wasm);
2121
},
2222
onFailure: (error) => {
2323
console.warn("Loading... failed!", error);

0 commit comments

Comments
 (0)