browser sessions v2 - frontend (#4514)

Co-authored-by: Benji Visser <benji@093b.org>
This commit is contained in:
Shuchang Zheng
2026-01-22 20:44:56 -08:00
committed by GitHub
parent c4c1e84507
commit 7a86a82107
5 changed files with 68 additions and 32 deletions

View File

@@ -31,12 +31,7 @@ import {
type MessageInExfiltratedEvent,
} from "@/store/useRecordingStore";
import { useSettingsStore } from "@/store/SettingsStore";
import {
environment,
wssBaseUrl,
newWssBaseUrl,
getRuntimeApiKey,
} from "@/util/env";
import { wssBaseUrl, newWssBaseUrl, getRuntimeApiKey } from "@/util/env";
import { copyText } from "@/util/copyText";
import { cn } from "@/util/utils";
@@ -223,7 +218,7 @@ function BrowserStream({
let credentialQueryParam = runtimeApiKey ? `apikey=${runtimeApiKey}` : "";
if (environment !== "local" && credentialGetter) {
if (credentialGetter) {
const token = await credentialGetter();
credentialQueryParam = token ? `token=Bearer ${token}` : "";
}