1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

Fix bowser.check specification (a string instead of a number)

This commit is contained in:
Denis Demchenko 2016-10-31 11:12:12 +02:00
parent 8b92707e7b
commit 61b368d3bf

View File

@ -41,12 +41,12 @@ bowser.check({msie: "9.0"}); // false
/**
* specific user agent
*/
bowser.check({chrome: 45}, window.navigator.userAgent); // true
bowser.check({chrome: "45"}, window.navigator.userAgent); // true
/**
* but false in strict mode
*/
bowser.check({chrome: 45}, true, window.navigator.userAgent); // false
bowser.check({chrome: "45"}, true, window.navigator.userAgent); // false
```
### bowser.compareVersions(versions`:Array<String>`)`:Number`