Skip to main content

Function: isBrowserEnvironment()

isBrowserEnvironment(): boolean

Defined in: shared/utils/environment.ts:103

Check if running in browser environment.

Returnsโ€‹

boolean

True if in browser environment

Remarksโ€‹

Detects browser environment by checking for window and document objects. This covers most browser contexts but may not detect some browser-like environments such as web workers, service workers, or server-side rendering contexts. For more specific environment detection, use additional checks tailored to your use case.