From 4d2710845316f926fb6796ea2620a0793147404c Mon Sep 17 00:00:00 2001 From: Ziaratban Date: Thu, 15 Aug 2024 16:47:12 +0330 Subject: [PATCH 1/2] fix --- bin/browser.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/browser.cjs b/bin/browser.cjs index a648123..1fef52b 100644 --- a/bin/browser.cjs +++ b/bin/browser.cjs @@ -158,7 +158,7 @@ const callChrome = async pup => { page.on('request', interceptedRequest => { var headers = interceptedRequest.headers(); - if (request.options && request.options.disableCaptureURLS) { + if (!request.options || !request.options.disableCaptureURLS) { requestsList.push({ url: interceptedRequest.url(), }); From 9682173cd46d3a1966e124f81193152c75363853 Mon Sep 17 00:00:00 2001 From: Ziaratban Date: Thu, 15 Aug 2024 16:47:12 +0330 Subject: [PATCH 2/2] fix --- bin/browser.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/browser.cjs b/bin/browser.cjs index 9d5b26d..532bb3c 100644 --- a/bin/browser.cjs +++ b/bin/browser.cjs @@ -161,7 +161,7 @@ const callChrome = async pup => { page.on('request', interceptedRequest => { var headers = interceptedRequest.headers(); - if (request.options && !request.options.disableCaptureURLS) { + if (!request.options || !request.options.disableCaptureURLS) { requestsList.push({ url: interceptedRequest.url(), });