Skip to content

Commit

Permalink
more console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dphiffer committed Apr 26, 2024
1 parent 534f923 commit 0234cc6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/collector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,13 @@ export const collect = async (inUrl: string, args: CollectorOptions) => {
headless: args.headless,
userDataDir
};
console.log(options.args);
if (args.puppeteerExecutablePath) {
options['executablePath'] = args.puppeteerExecutablePath;
}
browser = await puppeteer.launch(options);
browser.on('disconnected', () => {
console.log('browser disconnected');
didBrowserDisconnect = true;
});

Expand Down

0 comments on commit 0234cc6

Please sign in to comment.