diff --git a/README.md b/README.md
index 98180ba..c54e5ea 100644
--- a/README.md
+++ b/README.md
@@ -103,7 +103,7 @@ const isValidBrowser = bowser.compare({
});
```
-As you can see, settings for any particular OS has more priority and redefines settings of `any` property.
+Settings for any particular OS has more priority and redefines settings of standalone browsers.
### new Bowser(`:Object`)
Use it to get object with detected flags of your current browser.
@@ -170,11 +170,6 @@ For unknown browsers, Bowser makes a best guess from the UA string. So, these m
### Rendering engine flags
If detected, one of these flags may be set to true:
- * `webkit` - Chrome 0-27, Android <4.4, iOs, BB, etc.
- * `blink` - Chrome >=28, Android >=4.4, Opera, etc.
- * `gecko` - Firefox, etc.
- * `msie` - IE <= 11
- * `msedge` - IE > 11
Safari, Chrome and some other minor browsers will report that they have `webkit` engines.
Firefox and Seamonkey will report that they have `gecko` engines.
diff --git a/docs/Bowser.html b/docs/Bowser.html
index bc5929f..3ea379b 100644
--- a/docs/Bowser.html
+++ b/docs/Bowser.html
@@ -559,7 +559,7 @@ bowser.getResult()
diff --git a/docs/Parser.html b/docs/Parser.html
index 61b5139..e3aa923 100644
--- a/docs/Parser.html
+++ b/docs/Parser.html
@@ -277,7 +277,7 @@ like Parser#parseBrowser or Source:
undefined
when the browser is no described in the checkTree
undefined
when the browser is no described in the checkTree
diff --git a/docs/bowser.js.html b/docs/bowser.js.html
index 5796c9c..dd826b2 100644
--- a/docs/bowser.js.html
+++ b/docs/bowser.js.html
@@ -96,7 +96,7 @@ export default Bowser;
diff --git a/docs/global.html b/docs/global.html
index 84f748d..4f08f8c 100644
--- a/docs/global.html
+++ b/docs/global.html
@@ -238,6 +238,9 @@
String
+|
+
+undefined
@@ -255,7 +258,7 @@
-
Browser name, like "Chrome"
or "Internet Explorer"
Browser version as a String "12.01.45334.10"
OS name, like "Windows"
or "macOS"
OS version, like "NT 5.1"
or "10.11.1"
OS name, like "XP"
or "High Sierra"
platform type, can be either "desktop"
, "tablet"
or "mobile"
Vendor of the device,
+like "Apple"
or "Samsung"
Device model,
+like "iPhone"
or "Kindle Fire HD 7"
Can be any of this: WebKit
, Blink
, Gecko
, Trident
, Presto
, EdgeHTML
String version of the engine
As you can see, settings for any particular OS has more priority and redefines settings of any
property.
Settings for any particular OS has more priority and redefines settings of standalone browsers.
:Object
)Use it to get object with detected flags of your current browser.
:String
):Object
Use it to get object with detected flags from User Agent string.
:Object
, strictMode:Boolean
, [ua]:String
):Boolean
Use it to check if browser is supported. In default non-strict mode any browser family not present in minVersions
will pass the check (like Chrome in the third call in the sample bellow). When strict mode is enabled then any not specified browser family in minVersions
will cause check
to return false
(in the sample it is the fourth call, the last one).
For unknown browsers, Bowser makes a best guess from the UA string. So, these may not be set.
If detected, one of these flags may be set to true:
-webkit
- Chrome 0-27, Android <4.4, iOs, BB, etc.blink
- Chrome >=28, Android >=4.4, Opera, etc.gecko
- Firefox, etc.msie
- IE <= 11msedge
- IE > 11Safari, Chrome and some other minor browsers will report that they have webkit
engines.
Firefox and Seamonkey will report that they have gecko
engines.
if (bowser.webkit) {
@@ -243,7 +236,7 @@ check if all tests are still passing.
diff --git a/docs/parser.js.html b/docs/parser.js.html
index ecdb0a7..beb24a5 100644
--- a/docs/parser.js.html
+++ b/docs/parser.js.html
@@ -69,19 +69,24 @@ class Parser {
/**
* @typedef ParsedResult
* @property {Object} browser
- * @property {String} [browser.name]
- * @property {String} [browser.version]
+ * @property {String|undefined} [browser.name]
+ * Browser name, like `"Chrome"` or `"Internet Explorer"`
+ * @property {String|undefined} [browser.version] Browser version as a String `"12.01.45334.10"`
* @property {Object} os
- * @property {String} [os.name]
- * @property {String} [os.version]
- * @property {String} [os.versionName]
+ * @property {String|undefined} [os.name] OS name, like `"Windows"` or `"macOS"`
+ * @property {String|undefined} [os.version] OS version, like `"NT 5.1"` or `"10.11.1"`
+ * @property {String|undefined} [os.versionName] OS name, like `"XP"` or `"High Sierra"`
* @property {Object} platform
- * @property {String} [platform.type]
- * @property {String} [platform.vendor]
- * @property {String} [platform.model]
+ * @property {String|undefined} [platform.type]
+ * platform type, can be either `"desktop"`, `"tablet"` or `"mobile"`
+ * @property {String|undefined} [platform.vendor] Vendor of the device,
+ * like `"Apple"` or `"Samsung"`
+ * @property {String|undefined} [platform.model] Device model,
+ * like `"iPhone"` or `"Kindle Fire HD 7"`
* @property {Object} engine
- * @property {String} [engine.name]
- * @property {String} [engine.version]
+ * @property {String|undefined} [engine.name]
+ * Can be any of this: `WebKit`, `Blink`, `Gecko`, `Trident`, `Presto`, `EdgeHTML`
+ * @property {String|undefined} [engine.version] String version of the engine
*/
this.parsedResult = {};
@@ -476,7 +481,7 @@ export default Parser;
diff --git a/docs/utils.js.html b/docs/utils.js.html
index a6490dc..04d2e11 100644
--- a/docs/utils.js.html
+++ b/docs/utils.js.html
@@ -186,7 +186,7 @@ module.exports = Utils;
diff --git a/src/parser.js b/src/parser.js
index 6fb6541..2ce0fc9 100644
--- a/src/parser.js
+++ b/src/parser.js
@@ -30,19 +30,24 @@ class Parser {
/**
* @typedef ParsedResult
* @property {Object} browser
- * @property {String} [browser.name]
- * @property {String} [browser.version]
+ * @property {String|undefined} [browser.name]
+ * Browser name, like `"Chrome"` or `"Internet Explorer"`
+ * @property {String|undefined} [browser.version] Browser version as a String `"12.01.45334.10"`
* @property {Object} os
- * @property {String} [os.name]
- * @property {String} [os.version]
- * @property {String} [os.versionName]
+ * @property {String|undefined} [os.name] OS name, like `"Windows"` or `"macOS"`
+ * @property {String|undefined} [os.version] OS version, like `"NT 5.1"` or `"10.11.1"`
+ * @property {String|undefined} [os.versionName] OS name, like `"XP"` or `"High Sierra"`
* @property {Object} platform
- * @property {String} [platform.type]
- * @property {String} [platform.vendor]
- * @property {String} [platform.model]
+ * @property {String|undefined} [platform.type]
+ * platform type, can be either `"desktop"`, `"tablet"` or `"mobile"`
+ * @property {String|undefined} [platform.vendor] Vendor of the device,
+ * like `"Apple"` or `"Samsung"`
+ * @property {String|undefined} [platform.model] Device model,
+ * like `"iPhone"` or `"Kindle Fire HD 7"`
* @property {Object} engine
- * @property {String} [engine.name]
- * @property {String} [engine.version]
+ * @property {String|undefined} [engine.name]
+ * Can be any of this: `WebKit`, `Blink`, `Gecko`, `Trident`, `Presto`, `EdgeHTML`
+ * @property {String|undefined} [engine.version] String version of the engine
*/
this.parsedResult = {};