feat(client): bridge digital employee status
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user