From e10be389b3f1b578446f0d07d2ee050a721f4600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3nalan=20de=20Lima?= Date: Mon, 1 Mar 2021 13:42:14 -0300 Subject: [PATCH] fix: spinnies --- src/controllers/initializer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/initializer.ts b/src/controllers/initializer.ts index 259250ec2..9d9061fa0 100644 --- a/src/controllers/initializer.ts +++ b/src/controllers/initializer.ts @@ -56,7 +56,7 @@ import { readFileSync } from 'fs'; import { Whatsapp } from '../api/whatsapp'; import { CreateConfig, defaultOptions } from '../config/create-config'; import { SessionTokenCkeck, saveToken } from './auth'; -import { initWhatsapp, initBrowser, getWhatsappPage } from './browser'; +import { initWhatsapp, initBrowser } from './browser'; import { checkUpdates, welcomeScreen } from './welcome'; import { getSpinnies } from '../utils/spinnies'; import { SocketState } from '../api/model/enum'; @@ -155,7 +155,7 @@ export async function create( // Initialize whatsapp if (mergedOptions.browserWS) { - spinnies.succeed(`browser-${session}`, { + spinnies.add(`browser-${session}`, { text: `Waiting... checking the wss server...`, }); } else {