MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / needsRuntimeInjection

Function needsRuntimeInjection

scripts/static-server.mjs:529–539  ·  view source on GitHub ↗
(injectionOpts)

Source from the content-addressed store, hash-verified

527}
528
529function needsRuntimeInjection(injectionOpts) {
530 return Boolean(
531 injectionOpts.sessionApiKey ||
532 injectionOpts.authRequired ||
533 injectionOpts.runtimeServicesInfo ||
534 injectionOpts.lockToCloud ||
535 injectionOpts.vscodeBasePath ||
536 injectionOpts.disableTelemetry ||
537 (injectionOpts.basePath && injectionOpts.basePath !== "/"),
538 );
539}
540
541function looksLikeAssetRequest(urlPath) {
542 const last = urlPath.split("/").pop() ?? "";

Callers 1

handleStaticFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected