diff --git a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts index 32c8bcc7..a2b5b75c 100644 --- a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts +++ b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts @@ -146,13 +146,6 @@ export class WhatsappDirectLine extends GBService { const createClient = async (browserWSEndpoint) => { - if (!browserWSEndpoint) { - const browser = await createBrowser(profilePath); - this.browserWSEndpoint = await browser.wsEndpoint(); - } - else { - this.browserWSEndpoint = browserWSEndpoint; - } let puppeteer: any = { headless: false, args: [ '--no-sandbox', @@ -212,7 +205,7 @@ export class WhatsappDirectLine extends GBService { GBServer.globals.minBoot.whatsAppDirectLine.sendFileToDevice(adminNumber, url, Path.basename(localName), msg); } - // The e-mail is sent to all bots. + // The e-mail is sent to all bot owners. const html = `
${msg}