rewrite WS url more robustly (#2927)

This commit is contained in:
Jonathan Dobson
2025-07-10 17:48:01 -04:00
committed by GitHub
parent b0e462a23b
commit c294f338d0
3 changed files with 18 additions and 5 deletions

View File

@@ -20,8 +20,10 @@ function BrowserSession() {
try {
await client.get(`/browser_sessions/${browserSessionId}`);
setHasBrowserSession(true);
return true;
} catch (error) {
setHasBrowserSession(false);
return false;
}
},
});