v7.3.0
SupportExamplesFree Trial

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

No results

Properties

Properties are getters/setters or publicly accessible variables on this class
  • isCSP : Boolean
    internal
    static

    Returns truthy value if page contains Content Security Policy meta tag or globalThis.bryntum.CSP is truthy value

  • isTouchDevice : Boolean
    internal
    READONLY
    static

    Determines if the user is using a touch device.

  • supportsOverflowClip : Boolean
    internal
    READONLY
    static

    Yields true if the current browser supports CSS style overflow:clip.

  • supportsScrollTimeline : Boolean
    internal
    READONLY
    static

    Yields true if the current browser supports the ScrollTimeline API for scroll-driven animations.

  • supportsSticky : Boolean
    internal
    READONLY
    static

    Yields true if the current browser supports CSS style position:sticky.

  • chromeVersion : Number
    READONLY
    static

    Returns the major Chrome version or 0 for other browsers.

  • firefoxVersion : Number
    READONLY
    static

    Returns the major Firefox version or 0 for other browsers.

  • isChrome : Boolean
    READONLY
    static

    Checks if browser is Chrome or Chromium based browser. Returns truthy value for Edge Chromium.

  • isFirefox : Boolean
    READONLY
    static

    Checks if browser is Firefox.

  • isMobile : Boolean
    READONLY
    static

    Checks if the active device is a mobile device

  • isMobileSafari : Boolean
    READONLY
    static

    Checks if browser is mobile Safari

  • isSafari : Boolean
    READONLY
    static

    Checks if browser is Safari.

  • isWebkit : Boolean
    READONLY
    static

    Checks if browser is Webkit.

  • isAndroid : Boolean
    READONLY
    static

    Checks if platform is Android.

  • isLinux : Boolean
    READONLY
    static

    Checks if platform is Linux.

  • isMac : Boolean
    READONLY
    static

    Checks if platform is Mac.

  • isWindows : Boolean
    READONLY
    static

    Checks if platform is Windows.

  • isPhone : Boolean
    READONLY

    Yields true if the platform running is a phone (screen width or height <= 414 CSS pixels)

Functions

Functions are methods available for calling on the class

    Source path

    Core/helper/BrowserHelper.js

    Contents