Close all Puppeteer.Browser pages

This commit is contained in:
ful1e5 2020-09-29 11:07:40 +05:30
parent 2779fcfc67
commit d895fe8065

View file

@ -116,7 +116,7 @@ export class BitmapsGenerator {
await svgElement.screenshot({ omitBackground: true, path: out });
}
this.closeAllPages(browser);
await this.closeAllPages(browser);
}
/**
@ -173,6 +173,8 @@ export class BitmapsGenerator {
index++;
}
}
await this.closeAllPages(browser);
}
/**