From fd67541380f495b15a52b94fb6b02070e10174da Mon Sep 17 00:00:00 2001 From: danielcardeenas Date: Mon, 10 Jun 2019 17:51:41 -0500 Subject: [PATCH] Patch release --- package.json | 2 +- src/controllers/browser.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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]