mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Merge pull request #16519 from timvandermeij/puppeteer
Improve Puppeteer's `trimCache` API usage
This commit is contained in:
commit
8a5af64749
3 changed files with 38 additions and 51 deletions
|
@ -953,7 +953,7 @@ async function startBrowsers(initSessionCallback, makeStartUrl = null) {
|
|||
// Remove old browser revisions from Puppeteer's cache. Updating Puppeteer can
|
||||
// cause new browser revisions to be downloaded, so trimming the cache will
|
||||
// prevent the disk from filling up over time.
|
||||
await puppeteer.default.trimCache();
|
||||
await puppeteer.trimCache();
|
||||
|
||||
const browserNames = options.noChrome ? ["firefox"] : ["firefox", "chrome"];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue