From dbff5d9ceb5ef7c696fe5ff083b3a42d627149ee Mon Sep 17 00:00:00 2001 From: Travis Briggs Date: Sun, 7 Jul 2024 07:48:03 -0700 Subject: [PATCH] Properly await async polyfill function to avoid race condition --- src/mwoffliner.lib.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mwoffliner.lib.ts b/src/mwoffliner.lib.ts index 03f60281..43b9ac45 100644 --- a/src/mwoffliner.lib.ts +++ b/src/mwoffliner.lib.ts @@ -434,7 +434,7 @@ async function execute(argv: any) { if (downloader.webp) { logger.log('Downloading polyfill module') - importPolyfillModules(zimCreator) + await importPolyfillModules(zimCreator) } logger.log('Downloading module dependencies')