From cf075a8793c08c3bd97580e22705f0ba07acd56d Mon Sep 17 00:00:00 2001 From: Nelson Chan <3271800+chakflying@users.noreply.github.com> Date: Fri, 26 Jan 2024 06:53:15 +0800 Subject: [PATCH] Fix: missing await in `getRemoteBrowser()` (#4418) --- server/monitor-types/real-browser-monitor-type.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/monitor-types/real-browser-monitor-type.js b/server/monitor-types/real-browser-monitor-type.js index c03d36ca6..23493b7cb 100644 --- a/server/monitor-types/real-browser-monitor-type.js +++ b/server/monitor-types/real-browser-monitor-type.js @@ -96,7 +96,7 @@ async function getBrowser() { async function getRemoteBrowser(remoteBrowserID, userId) { let remoteBrowser = await RemoteBrowser.get(remoteBrowserID, userId); log.debug("MONITOR", `Using remote browser: ${remoteBrowser.name} (${remoteBrowser.id})`); - browser = chromium.connect(remoteBrowser.url); + browser = await chromium.connect(remoteBrowser.url); return browser; }