IN_BROWSER
const
Internals
Boolean flag that is true only when code is running in a real browser context (window + document available). Used throughout the DS to guard DOM access and prevent SSR crashes.
TypeScript
Definition
The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.
Resolved value
Ecosystem
Used by
Composables and components that consume this constant.
useDisplay
useIntersectionObserver
useTouchSupport
SUPPORTS_TOUCH
SUPPORTS_INTERSECTION
Usage
Examples
Ready-to-paste code snippets using this constant.
Guarding DOM access with IN_BROWSER