Skip to content

Commit

Permalink
feat: Improved chat state to keep alive and online
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Apr 25, 2022
1 parent 5ad6045 commit ba82005
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controllers/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ export async function injectApi(page: Page) {
await page
.evaluate(() => {
WPP.chat.defaultSendMessageOptions.createChat = true;
WPP.conn.setKeepAlive(true);
})
.catch(() => false);
await page.addScriptTag({
Expand Down

0 comments on commit ba82005

Please sign in to comment.