Skip to main content

Constants

isMobileDevice

Returns a boolean based on if the environment is on a mobile device or desktop.

tip

Will detect if browser dev tools are opened and Device Toolbar is on.

getBrowser

Returns a string value of type BrowserName based on the environment the app is in.

export type BrowserName = "firefox" | "chrome" | "safari" | "edge" | "opera";