Update endpoints/turnstile.js
Browse files- endpoints/turnstile.js +1 -1
endpoints/turnstile.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
module.exports = async function (page, url, siteKey) {
|
| 2 |
return new Promise(async (resolve, reject) => {
|
| 3 |
-
const timeout = setTimeout(() => reject(new Error("Timeout Turnstile")),
|
| 4 |
|
| 5 |
try {
|
| 6 |
await page.goto(url, { waitUntil: "domcontentloaded" });
|
|
|
|
| 1 |
module.exports = async function (page, url, siteKey) {
|
| 2 |
return new Promise(async (resolve, reject) => {
|
| 3 |
+
const timeout = setTimeout(() => reject(new Error("Timeout Turnstile")), 30000);
|
| 4 |
|
| 5 |
try {
|
| 6 |
await page.goto(url, { waitUntil: "domcontentloaded" });
|