Skip to content

Commit

Permalink
馃┕ patch pptr-proxy dep #2755
Browse files Browse the repository at this point in the history
  • Loading branch information
smashah committed Jun 24, 2022
1 parent 72cd4c0 commit 81c9c6f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions patches/puppeteer-page-proxy+1.2.8.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/puppeteer-page-proxy/src/lib/cookies.js b/node_modules/puppeteer-page-proxy/src/lib/cookies.js
index 1194b24..5c33beb 100644
--- a/node_modules/puppeteer-page-proxy/src/lib/cookies.js
+++ b/node_modules/puppeteer-page-proxy/src/lib/cookies.js
@@ -63,7 +63,7 @@ const formatCookie = (cookie) => {
// Responsible for getting and setting browser cookies
class CookieHandler extends CDP {
constructor(request) {
- super(request._client);
+ super(request._client || request.client);
this.url = request.isNavigationRequest() ? request.url() : request.frame().url();
this.domain = new URL(this.url).hostname;
}

0 comments on commit 81c9c6f

Please sign in to comment.