Skip to content

Commit 7ddc2a0

Browse files
committed
fixed the bug-frame as maintainer-suggested
1 parent c48acf7 commit 7ddc2a0

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
@@ -390,7 +390,7 @@ function loadingDisplaying(p5, fn){
390390
to be drawn and immediately save it to a buffer and continue
391391
*/
392392
this.redraw();
393-
await new Promise(resolve => requestAnimationFrame(resolve));
393+
await new Promise(requestAnimationFrame);
394394
// depending on the context we'll extract the pixels one way
395395
// or another
396396
let data = undefined;

0 commit comments

Comments
 (0)