MCPcopy Create free account
hub / github.com/Effect-TS/effect / bare

Function bare

packages/ui/devtools/src/node/DevToolsVite.ts:238–241  ·  view source on GitHub ↗
(base: string)

Source from the content-addressed store, hash-verified

236
237// On a workbench page, `?bare` keeps everything but the overlay's iframe.
238const bare = (base: string): string =>
239 `!(location.pathname.startsWith(${JSON.stringify(base)}) && ${workbenchPath}.test(location.pathname.slice(${
240 base.length - 1
241 })) && new URLSearchParams(location.search).has("bare"))`
242
243const devToolsClient = (
244 options: OverlayOptions & {

Callers 1

devToolsClientFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected