Skip to content

Commit

Permalink
fix: browserInstance callback
Browse files Browse the repository at this point in the history
  • Loading branch information
jonalan7 committed May 4, 2021
1 parent 08724ea commit 8132418
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/controllers/initializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ export async function create(
browserToken
);

if (browserInstance) {
browserInstance(browser, page);
}

if (page === false) {
spinnies.fail(`whatzapp-${session}`, {
text: 'Error accessing the page: "https://web.whatsapp.com"',
Expand Down

0 comments on commit 8132418

Please sign in to comment.