BrowserHelper
A static utility class for detecting the current browser, operating system, and platform capabilities. It exposes boolean flags such as isChrome, isSafari, isMobile, isMac, etc., and numeric version properties like chromeVersion and firefoxVersion.
if (BrowserHelper.isSafari) {
// Safari-specific workaround
}
if (BrowserHelper.isMobile) {
// Touch-friendly layout
}
See also
- DomHelper - DOM element utilities
- EventHelper - DOM event utilities
Properties
Properties are getters/setters or publicly accessible variables on this class-
Returns truthy value if page contains Content Security Policy meta tag or globalThis.bryntum.CSP is truthy value
-
Determines if the user is using a touch device.
-
Yields
trueif the current browser supports CSS styleoverflow:clip. -
Yields
trueif the current browser supports theScrollTimelineAPI for scroll-driven animations. -
Yields
trueif the current browser supports CSS styleposition:sticky. -
Returns the major Chrome version or 0 for other browsers.
-
Returns the major Firefox version or 0 for other browsers.
-
Checks if browser is Chrome or Chromium based browser. Returns truthy value for Edge Chromium.
-
Checks if browser is Firefox.
-
Checks if the active device is a mobile device
-
Checks if browser is mobile Safari
-
Checks if browser is Safari.
-
Checks if browser is Webkit.
-
Checks if platform is Android.
-
Checks if platform is Linux.
-
Checks if platform is Mac.
-
Checks if platform is Windows.
-
Yields
trueif the platform running is a phone (screen width or height <= 414 CSS pixels)