BrowserHelper
Static helper class that does browser or platform detection and provides other helper functions.
Properties
13
Properties
13Browser
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.
Platform
Checks if platform is Android.
Checks if platform is Linux.
Checks if platform is Mac.
Yields true if the platform running is a phone (screen width or height <= 414 CSS pixels)
Checks if platform is Windows.
Functions
2
Functions
2Returns cookie by name.
| Parameter | Type | Description |
|---|---|---|
name | String | cookie name |
cookie string value
Returns parameter value from search string by parameter name.
| Parameter | Type | Description |
|---|---|---|
paramName | String | search parameter name |
defaultValue | String | default value if parameter not found |
search | String | search string. Defaults to |
search parameter string value