summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-03-14 03:00:22 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-03-14 03:00:22 +0300
commitb33e6f0abab13b986e167997ed862f78399ee18a (patch)
tree26461c35d433f471a99d2d36da40c025aa4959ed
parent88bc698e878d608f696008e58c9570fcdc6606b1 (diff)
page.setCookie async fix
-rw-r--r--browser.js2
1 files changed, 1 insertions, 1 deletions
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', {