Skip to content

Commit 4c3599b

Browse files
committed
fix: add MacOS support for Puppeteer executable path
- Updated SessionManager to specify the executable path for Puppeteer on MacOS, enhancing compatibility for users on that platform. - Cleaned up error handling in session destruction for improved reliability.
1 parent cca284d commit 4c3599b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/SessionManager.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ export class SessionManager extends EventEmitter {
4848
}),
4949
puppeteer: {
5050
headless: true,
51+
executablePath:
52+
process.platform === 'darwin'
53+
? '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome'
54+
: undefined,
5155
args: ['--no-sandbox', '--disable-setuid-sandbox'],
5256
},
5357
qrMaxRetries: 1, // Important: Only 1 attempt after 60s

0 commit comments

Comments
 (0)