1. move `resolve(img)` in loadAsset function to the inside of the img.onload function to resolve the promise after the image is loaded 2. remove the async keyword of loadAsset because it is not that harmful but not yet necessarypull/78/head
parent
cb6ea41526
commit
37f3626e2b
Loading…
Reference in new issue