From a01f18a11034408c251a8326c8df84157aae9761 Mon Sep 17 00:00:00 2001 From: Emilien Devos Date: Fri, 22 May 2020 20:25:02 +0200 Subject: change trigger for waiting for the anti bot page --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3