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

Function needsRuntimeInjection

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

Source from the content-addressed store, hash-verified

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

Callers 1

handleStaticFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected