Skip to content

Commit

Permalink
fix: Bypass content-security-policy errors (#2110)
Browse files Browse the repository at this point in the history
  • Loading branch information
renandecarlo committed Mar 22, 2024
1 parent 0166bef commit 0699749
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/controllers/initializer.ts
Expand Up @@ -235,6 +235,8 @@ export async function create(
}

if (page) {
await page.setBypassCSP(true);

const client = new Whatsapp(page, session, mergedOptions);
client.catchQR = catchQR;
client.statusFind = statusFind;
Expand Down

0 comments on commit 0699749

Please sign in to comment.