Skip to content

Commit

Permalink
fix: spinnies
Browse files Browse the repository at this point in the history
  • Loading branch information
jonalan7 committed Mar 1, 2021
1 parent 003a5b2 commit e10be38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/initializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit e10be38

Please sign in to comment.