Skip to content

Commit

Permalink
use default profile
Browse files Browse the repository at this point in the history
  • Loading branch information
lherman-cs committed Feb 1, 2024
1 parent fb8ad13 commit 5b0daff
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ const url = process.argv[2];

(async () => {
const browser = await puppeteer.launch({
headless: false, devtools: false, defaultViewport: null, args: [
headless: false,
userDataDir: '~/Library/Application Support/Google/Chrome',
devtools: false, defaultViewport: null, args: [
"--start-fullscreen",
"--use-gl=angle",
"--use-angle=gl"
"--use-angle=gl",
'--profile-directory=Default',
]
});
const page = await browser.newPage();
Expand Down

0 comments on commit 5b0daff

Please sign in to comment.