mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore(docs): Fix extensions guide (#9657)
This commit is contained in:
parent
8054bac046
commit
6ada628f39
@ -20,7 +20,7 @@ import path from 'path';
|
|||||||
(async () => {
|
(async () => {
|
||||||
const pathToExtension = path.join(process.cwd(), 'my-extension');
|
const pathToExtension = path.join(process.cwd(), 'my-extension');
|
||||||
const browser = await puppeteer.launch({
|
const browser = await puppeteer.launch({
|
||||||
headless: 'chrome',
|
headless: 'new',
|
||||||
args: [
|
args: [
|
||||||
`--disable-extensions-except=${pathToExtension}`,
|
`--disable-extensions-except=${pathToExtension}`,
|
||||||
`--load-extension=${pathToExtension}`,
|
`--load-extension=${pathToExtension}`,
|
||||||
|
Loading…
Reference in New Issue
Block a user