Skip to content

Commit

Permalink
Fixed up AssetManager to fire a progress call when no assets are loaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
probityrules committed Aug 20, 2021
1 parent 0a66734 commit 0a3a144
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/AssetManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,14 @@ export default class AssetManager {
}

queue.load();
} else if (all) {
} else {
setTimeout(() => { // To run in same async sequence as above.
all();
if (one) {
one(1);
}
if (all) {
all();
}
}, 1);
}

Expand Down

0 comments on commit 0a3a144

Please sign in to comment.