diff --git a/package.json b/package.json index 7f39f5d1..fe3bcc7f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sulla", - "version": "1.1.0", + "version": "1.1.1", "description": "Javascript whatsapp framework", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/controllers/browser.ts b/src/controllers/browser.ts index ad1c4209..fa34bfcc 100644 --- a/src/controllers/browser.ts +++ b/src/controllers/browser.ts @@ -1,5 +1,5 @@ import * as path from 'path'; -import * as puppeteer from 'puppeteer'; +import puppeteer from 'puppeteer'; import { puppeteerConfig } from '../config/puppeteer.config'; export async function initWhatsapp() { @@ -26,8 +26,8 @@ export async function injectApi(page: puppeteer.Page) { async function initBrowser() { const browser = await puppeteer.launch({ - headless: false, - // headless: true, + // headless: false, + headless: true, devtools: false, userDataDir: path.join(process.cwd(), 'session'), args: [...puppeteerConfig.chroniumArgs]