summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmilien Devos <contact@emiliendevos.be>2020-05-22 20:25:02 +0200
committerEmilien Devos <contact@emiliendevos.be>2020-05-22 20:25:02 +0200
commita01f18a11034408c251a8326c8df84157aae9761 (patch)
tree470fb27a47a266ec50e1d3f20c759c5ec840c8fe
parente91177fc59d8862f87010ff30d1986d2a37a0b58 (diff)
change trigger for waiting for the anti bot page
-rw-r--r--index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.js b/index.js
index 90658f0..bc19d1a 100644
--- a/index.js
+++ b/index.js
@@ -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();