MCPcopy
hub / github.com/codex-team/editor.js / isMobileScreen

Function isMobileScreen

src/components/utils.ts:761–763  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

759 * True if screen has mobile size
760 */
761export function isMobileScreen(): boolean {
762 return window.matchMedia(`(max-width: ${mobileScreenBreakpoint}px)`).matches;
763}
764
765/**
766 * True if current device runs iOS

Callers 2

openMethod · 0.90
constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected