feat(client): bridge digital employee status

This commit is contained in:
baiyanyun
2026-06-05 15:59:48 +08:00
parent 31b4b5a281
commit 15a3285ed5
7 changed files with 268 additions and 60 deletions

View File

@@ -166,7 +166,8 @@ const WEBVIEW_PERF_BRIDGE_PRELOAD = path.join(
function shouldInjectWebviewPerfBridge(url: string): boolean {
try {
const parsed = new URL(url);
return /^https?:$/.test(parsed.protocol);
if (/^https?:$/.test(parsed.protocol)) return true;
return parsed.protocol === "file:" && parsed.pathname.includes("/sgrobot-digital/");
} catch {
return false;
}