Skip to content

ZenFG TypeScript API / inspector / root / isZenFGInspectorRequested

Function: isZenFGInspectorRequested() ​

isZenFGInspectorRequested(href?): boolean

Defined in: inspector/src/query.ts:11

Reports whether a URL contains the fg inspector opt-in parameter.

Parameters ​

href? ​

string = globalThis.location.href

Absolute URL accepted by URL; defaults to the current page URL when a browser location is available.

Returns ​

boolean

false when no URL is available or the supplied URL is invalid.

Open source / MIT licensed