77a4ea505e
Drive-By: give Puppeteer-Firefox its own copy of DeviceDescriptors.
8 lines
236 B
JavaScript
8 lines
236 B
JavaScript
(async() => {
|
|
const [, , puppeteerRoot, options] = process.argv;
|
|
const browser = await require(puppeteerRoot).launch(JSON.parse(options));
|
|
const page = await browser.newPage();
|
|
await page.close();
|
|
await browser.close();
|
|
})();
|