diff --git a/packages/puppeteer-extra-plugin-stealth/evasions/user-agent-override/index.js b/packages/puppeteer-extra-plugin-stealth/evasions/user-agent-override/index.js index 0c2d3864f..5ffdda178 100644 --- a/packages/puppeteer-extra-plugin-stealth/evasions/user-agent-override/index.js +++ b/packages/puppeteer-extra-plugin-stealth/evasions/user-agent-override/index.js @@ -179,7 +179,7 @@ class Plugin extends PuppeteerExtraPlugin { const client = typeof page._client === 'function' ? page._client() : page._client - client.send('Network.setUserAgentOverride', override) + await client.send('Network.setUserAgentOverride', override) } async beforeLaunch(options) {