From b33e6f0abab13b986e167997ed862f78399ee18a Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Mon, 14 Mar 2022 03:00:22 +0300 Subject: page.setCookie async fix --- browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser.js b/browser.js index bf4d87c..dfad399 100644 --- a/browser.js +++ b/browser.js @@ -37,7 +37,7 @@ module.exports = { await cookiesStorage.save(cookies) }) - page.setCookie(...(await cookiesStorage.get())) + await page.setCookie(...(await cookiesStorage.get())) cdpClient = await page.target().createCDPSession(); await cdpClient.send('Network.setRequestInterception', { -- cgit v1.2.3