Skip to content

Commit

Permalink
Properly await async polyfill function to avoid race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
audiodude committed Jul 7, 2024
1 parent 372f0c7 commit dbff5d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mwoffliner.lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ async function execute(argv: any) {

if (downloader.webp) {
logger.log('Downloading polyfill module')
importPolyfillModules(zimCreator)
await importPolyfillModules(zimCreator)

Check warning on line 437 in src/mwoffliner.lib.ts

View check run for this annotation

Codecov / codecov/patch

src/mwoffliner.lib.ts#L437

Added line #L437 was not covered by tests
}

logger.log('Downloading module dependencies')
Expand Down

0 comments on commit dbff5d9

Please sign in to comment.