We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7aa3e90 commit a164834Copy full SHA for a164834
src/api/export.ts
@@ -173,7 +173,7 @@ async function _export({
173
let match;
174
let pattern = /<a ([\s\S]+?)>/gm;
175
176
- let promise;
+ const promises = [];
177
178
while (match = pattern.exec(cleaned)) {
179
const attrs = match[1];
@@ -183,12 +183,12 @@ async function _export({
183
const url = resolve(base.href, href);
184
185
if (url.protocol === protocol && url.host === host) {
186
- promise = handle(url);
+ promises.push(handle(url));
187
}
188
189
190
191
- await promise;
+ await Promise.all(promises);
192
193
194
0 commit comments