fix(basic.gblib): update ChatServices.ts #420

Closed
eltociear wants to merge 2540 commits from patch-1 into main
Showing only changes of commit d563c0f5ed - Show all commits

View file

@ -138,8 +138,6 @@ export class WhatsappDirectLine extends GBService {
const gbaiName = `${this.min.botId}.gbai`;
const localName = Path.join('work', gbaiName, 'profile');
const browser = await createBrowser(localName);
const createClient = (browserWSEndpoint) => {
let puppeteer: any = {
headless: false, args: ['--disable-features=site-per-process',
@ -202,15 +200,15 @@ export class WhatsappDirectLine extends GBService {
GBLog.info(`WhatsApp QR Code authenticated for ${this.botId}.`);
});
client.browser.on('disconnected', (async () => {
(createClient.bind(this))(this.browserWSEndpoint);
}).bind(this));
};
(createClient.bind(this))(this.browserWSEndpoint);
browser.on('disconnected', (async () => {
(createClient.bind(this))(this.browserWSEndpoint);
}).bind(this));
setUrl = false;
}
break;