mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
25 lines
429 B
JavaScript
25 lines
429 B
JavaScript
/**
|
|
* @license
|
|
* Copyright 2023 Google Inc.
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {
|
|
Browser,
|
|
detectBrowserPlatform,
|
|
install,
|
|
resolveBuildId,
|
|
} from '@puppeteer/browsers';
|
|
|
|
(async () => {
|
|
await install({
|
|
cacheDir: process.env['PUPPETEER_CACHE_DIR'],
|
|
browser: Browser.CHROME,
|
|
buildId: await resolveBuildId(
|
|
Browser.CHROME,
|
|
detectBrowserPlatform(),
|
|
'canary'
|
|
),
|
|
});
|
|
})();
|