From 1c3ff0bd52956cddc355e0630d51ed53d15b751c Mon Sep 17 00:00:00 2001 From: Pavel Date: Wed, 18 Dec 2019 14:00:35 -0800 Subject: [PATCH] fix(ff): await for configuration promises --- src/firefox/Browser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/firefox/Browser.ts b/src/firefox/Browser.ts index 0652eb797f..42d6af0974 100644 --- a/src/firefox/Browser.ts +++ b/src/firefox/Browser.ts @@ -202,7 +202,7 @@ export class Browser extends EventEmitter implements BrowserInterface { promises.push(session.send('Page.setUserAgent', { userAgent: options.userAgent })); if (options.mediaType || options.colorScheme) promises.push(session.send('Page.setEmulatedMedia', { type: options.mediaType, colorScheme: options.colorScheme })); - Promise.all(promises); + await Promise.all(promises); return page; },