Skip to content

Commit

Permalink
fix: 🐛 fixed a bug that headless is "false" it must bew "new"
Browse files Browse the repository at this point in the history
fixes #126
  • Loading branch information
Disane87 committed Jul 5, 2023
1 parent e698802 commit 07f87e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/puppeteer.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class Puppeteer {
}

public async setup(): Promise<Browser> {
this.browser = await puppeteer.launch({ headless: false, args: this.arguments, dumpio: false, devtools: this.debug, executablePath: this.getExecutablePath() });
this.browser = await puppeteer.launch({ headless: `new`, args: this.arguments, dumpio: false, devtools: this.debug, executablePath: this.getExecutablePath() });
return this.browser;
}

Expand Down

0 comments on commit 07f87e8

Please sign in to comment.