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:
parent
8b92707e7b
commit
61b368d3bf
@ -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`
|
||||
|
Loading…
Reference in New Issue
Block a user