mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 18:24:57 +00:00
style(browser): fix oxfmt formatting in config.ts
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
committed by
Peter Steinberger
parent
7b58507224
commit
4d904e7b7d
@@ -265,11 +265,16 @@ export function resolveBrowserConfig(
|
|||||||
const defaultProfileFromConfig = cfg?.defaultProfile?.trim() || undefined;
|
const defaultProfileFromConfig = cfg?.defaultProfile?.trim() || undefined;
|
||||||
// Use legacy cdpUrl port for backward compatibility when no profiles configured
|
// Use legacy cdpUrl port for backward compatibility when no profiles configured
|
||||||
const legacyCdpPort = rawCdpUrl ? cdpInfo.port : undefined;
|
const legacyCdpPort = rawCdpUrl ? cdpInfo.port : undefined;
|
||||||
const isWsUrl =
|
const isWsUrl = cdpInfo.parsed.protocol === "ws:" || cdpInfo.parsed.protocol === "wss:";
|
||||||
cdpInfo.parsed.protocol === "ws:" || cdpInfo.parsed.protocol === "wss:";
|
|
||||||
const legacyCdpUrl = rawCdpUrl && isWsUrl ? cdpInfo.normalized : undefined;
|
const legacyCdpUrl = rawCdpUrl && isWsUrl ? cdpInfo.normalized : undefined;
|
||||||
const profiles = ensureDefaultChromeExtensionProfile(
|
const profiles = ensureDefaultChromeExtensionProfile(
|
||||||
ensureDefaultProfile(cfg?.profiles, defaultColor, legacyCdpPort, cdpPortRangeStart, legacyCdpUrl),
|
ensureDefaultProfile(
|
||||||
|
cfg?.profiles,
|
||||||
|
defaultColor,
|
||||||
|
legacyCdpPort,
|
||||||
|
cdpPortRangeStart,
|
||||||
|
legacyCdpUrl,
|
||||||
|
),
|
||||||
controlPort,
|
controlPort,
|
||||||
);
|
);
|
||||||
const cdpProtocol = cdpInfo.parsed.protocol === "https:" ? "https" : "http";
|
const cdpProtocol = cdpInfo.parsed.protocol === "https:" ? "https" : "http";
|
||||||
|
|||||||
Reference in New Issue
Block a user