browser

browser.js

Members

(static) ANDROID_VERSION :number|string|null

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

Type:
  • number | string | null

(static) 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

(static) CHROMIUM_VERSION :number|null

The detected Chromium version - or null.

Type:
  • number | null

(static) IE_VERSION :number|null

The detected Internet Explorer version - or null.

Type:
  • number | null
Deprecated
  • Yes

(static) IOS_VERSION :string|null

The detected iOS version - or null.

Type:
  • string | null

(static) IS_ANDROID :Boolean

Whether or not this is an Android device.

Type:
  • Boolean

(static, constant) IS_ANY_SAFARI :Boolean

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

Type:
  • Boolean

(static) 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

(static) IS_CHROMIUM :Boolean

Whether or not this is any Chromium Browser

Type:
  • Boolean

(static) IS_EDGE :Boolean

Whether or not this is Microsoft Edge.

Type:
  • Boolean

(static) IS_FIREFOX :Boolean

Whether or not this is Mozilla Firefox.

Type:
  • Boolean

(static, constant) IS_IOS :Boolean

Whether or not this is an iOS device.

Type:
  • Boolean

(static) IS_IPAD :Boolean

Whether or not this device is an iPad.

Type:
  • Boolean

(static) IS_IPHONE :Boolean

Whether or not this device is an iPhone.

Type:
  • Boolean

(static) IS_IPOD :Boolean

Whether or not this device is an iPod.

Type:
  • Boolean

(static) IS_SAFARI :Boolean

Whether or not this is desktop Safari.

Type:
  • Boolean

(static) IS_SMART_TV :Boolean

Whether or not this is a Smart TV (Tizen or WebOS) device.

Type:
  • Boolean

(static) IS_TIZEN :Boolean

Whether or not this is a Tizen device.

Type:
  • Boolean

(static) IS_WEBOS :Boolean

Whether or not this is a WebOS device.

Type:
  • Boolean

(static) IS_WINDOWS :Boolean

Whether or not this is a Windows machine.

Type:
  • Boolean

(static, constant) TOUCH_ENABLED :Boolean

Whether or not this device is touch-enabled.

Type:
  • Boolean