browser

browser.js

Members

ANDROID_VERSION :number|string|null

The detected Android version - or null if not Android or indeterminable.

Type:
  • number | string | null

CHROME_VERSION :number|null

The detected Google Chrome version - or null. This has always been the Chromium version, i.e. would return on Chromium Edge. Deprecated, use CHROMIUM_VERSION instead.

Type:
  • number | null
Deprecated
  • Yes

CHROMIUM_VERSION :number|null

The detected Chromium version - or null.

Type:
  • number | null

IE_VERSION :number|null

The detected Internet Explorer version - or null.

Type:
  • number | null
Deprecated
  • Yes

IOS_VERSION :string|null

The detected iOS version - or null.

Type:
  • string | null

IS_ANDROID :Boolean

Whether or not this is an Android device.

Type:
  • Boolean

IS_ANY_SAFARI :Boolean

Whether or not this is any flavor of Safari - including iOS.

Type:
  • Boolean

IS_CHROME :Boolean

Whether or not this is any Chromium browser that is not Edge.

This will also be true for Chrome on iOS, which will have different support as it is actually Safari under the hood.

Deprecated, as the behaviour to not match Edge was to prevent Legacy Edge's UA matching. IS_CHROMIUM should be used instead. "Chromium but not Edge" could be explicitly tested with IS_CHROMIUM && !IS_EDGE

Type:
  • Boolean
Deprecated
  • Yes

IS_CHROMIUM :Boolean

Whether or not this is any Chromium Browser

Type:
  • Boolean

IS_EDGE :Boolean

Whether or not this is Microsoft Edge.

Type:
  • Boolean

IS_FIREFOX :Boolean

Whether or not this is Mozilla Firefox.

Type:
  • Boolean

IS_IOS :Boolean

Whether or not this is an iOS device.

Type:
  • Boolean

IS_IPAD :Boolean

Whether or not this device is an iPad.

Type:
  • Boolean

IS_IPHONE :Boolean

Whether or not this device is an iPhone.

Type:
  • Boolean

IS_IPOD :Boolean

Whether or not this device is an iPod.

Type:
  • Boolean

IS_SAFARI :Boolean

Whether or not this is desktop Safari.

Type:
  • Boolean

IS_WINDOWS :Boolean

Whether or not this is a Windows machine.

Type:
  • Boolean

TOUCH_ENABLED :Boolean

Whether or not this device is touch-enabled.

Type:
  • Boolean