[core] WEBJS add waha arguments to chrome to identify it better

This commit is contained in:
devlikepro committed 2025-07-02 14:45:49 +07:00
1 parent d2ab78b65c
commit 314b02daf1
1 file changed
+5 -1
+5 -1
View File
@@ -194,11 +194,15 @@ export class WhatsappSessionWebJSCore extends WhatsappSession {
if (cacheType === 'local') {
this.logger.info(`Using web version: '${webVersion}'`);
}
const args = this.getBrowserArgsForPuppeteer();
// add at the start
args.unshift(`--a-waha-timestamp=${new Date()}`);
args.unshift(`--a-waha-session=${this.name}`);
return {
puppeteer: {
headless: true,
executablePath: this.getBrowserExecutablePath(),
args: this.getBrowserArgsForPuppeteer(),
args: args,
dumpio: this.isDebugEnabled(),
},
userAgent: