diff options
author | Emilien Devos <contact@emiliendevos.be> | 2020-05-22 20:25:02 +0200 |
---|---|---|
committer | Emilien Devos <contact@emiliendevos.be> | 2020-05-22 20:25:02 +0200 |
commit | a01f18a11034408c251a8326c8df84157aae9761 (patch) | |
tree | 470fb27a47a266ec50e1d3f20c759c5ec840c8fe | |
parent | e91177fc59d8862f87010ff30d1986d2a37a0b58 (diff) |
change trigger for waiting for the anti bot page
-rw-r--r-- | index.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -14,7 +14,7 @@ const app = new Koa(); if (ctx.query.url) { const page = await browser.newPage(); await page.goto(ctx.query.url); - if ((await page.content()).includes("cloudflare")) + if ((await page.content()).includes("cf-browser-verification")) await page.waitForNavigation(); ctx.body = await page.content(); await page.close(); |