browser.js
Members
-
static module:browser.ANDROID_VERSIONnumber string null
-
The detected Android version - or
null
if not Android or indeterminable. -
static module:browser.CHROME_VERSIONnumber 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.- Deprecated
- Yes
-
static module:browser.CHROMIUM_VERSIONnumber null
-
The detected Chromium version - or
null
. -
static module:browser.IE_VERSIONnumber null
-
The detected Internet Explorer version - or
null
.- Deprecated
- Yes
-
static module:browser.IOS_VERSIONstring null
-
The detected iOS version - or
null
. -
static module:browser.IS_ANDROIDBoolean
-
Whether or not this is an Android device.
-
static,constant module:browser.IS_ANY_SAFARIBoolean
-
Whether or not this is any flavor of Safari - including iOS.
-
static module:browser.IS_CHROMEBoolean
-
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
- Deprecated
- Yes
-
static,constant module:browser.IS_CHROMECAST_RECEIVERBoolean
-
Whether or not this is a Chromecast receiver application.
-
static module:browser.IS_CHROMIUMBoolean
-
Whether or not this is any Chromium Browser
-
static module:browser.IS_EDGEBoolean
-
Whether or not this is Microsoft Edge.
-
static module:browser.IS_FIREFOXBoolean
-
Whether or not this is Mozilla Firefox.
-
static,constant module:browser.IS_IOSBoolean
-
Whether or not this is an iOS device.
-
static module:browser.IS_IPADBoolean
-
Whether or not this device is an iPad.
-
static module:browser.IS_IPHONEBoolean
-
Whether or not this device is an iPhone.
-
static module:browser.IS_IPODBoolean
-
Whether or not this device is an iPod.
-
static module:browser.IS_SAFARIBoolean
-
Whether or not this is desktop Safari.
-
static module:browser.IS_SMART_TVBoolean
-
Whether or not this is a Smart TV (Tizen or WebOS) device.
-
static module:browser.IS_TIZENBoolean
-
Whether or not this is a Tizen device.
-
static module:browser.IS_WEBOSBoolean
-
Whether or not this is a WebOS device.
-
static module:browser.IS_WINDOWSBoolean
-
Whether or not this is a Windows machine.
-
static,constant module:browser.TOUCH_ENABLEDBoolean
-
Whether or not this device is touch-enabled.