MCPcopy Index your code
hub / github.com/ColmapView/Colmapview.github.io / isEnabledQueryFlag

Function isEnabledQueryFlag

src/appStartupPolicy.ts:47–49  ·  view source on GitHub ↗
(value: string | null)

Source from the content-addressed store, hash-verified

45}
46
47function isEnabledQueryFlag(value: string | null): boolean {
48 return value === '1' || value === 'true';
49}
50
51export function shouldEnableEmbedModeFromSearch(search: string): boolean {
52 return isEnabledQueryFlag(new URLSearchParams(search).get('embed'));

Calls

no outgoing calls

Tested by

no test coverage detected