Skip to content

Commit 15f7908

Browse files
committed
fixed the error at line 383 as maintainer-suggested
1 parent 7ddc2a0 commit 15f7908

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/image/loading_displaying.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ function loadingDisplaying(p5, fn){
380380
//
381381
// Waiting on this empty promise means we'll continue as soon as setup
382382
// finishes without waiting for another frame.
383-
await Promise.resolve();
383+
await new Promise(requestAnimationFrame)
384384

385385
while (frameIterator < totalNumberOfFrames) {
386386
/*

0 commit comments

Comments
 (0)