mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
Merge branch 'release/1.5.0'
This commit is contained in:
commit
2df607d457
@ -1,5 +1,9 @@
|
|||||||
# Bowser Changelog
|
# Bowser Changelog
|
||||||
|
|
||||||
|
### 1.5.0 (October 31, 2016)
|
||||||
|
- [ADD] Throw an error when `minVersion` map has not a string as a version and fix readme (#165)
|
||||||
|
- [FIX] Fix truly detection of Windows Phones (#167)
|
||||||
|
|
||||||
### 1.4.6 (September 19, 2016)
|
### 1.4.6 (September 19, 2016)
|
||||||
- [FIX] Fix mobile Opera's version detection on Android
|
- [FIX] Fix mobile Opera's version detection on Android
|
||||||
- [FIX] Fix typescript typings — add `mobile` and `tablet` flags
|
- [FIX] Fix typescript typings — add `mobile` and `tablet` flags
|
||||||
|
@ -41,12 +41,12 @@ bowser.check({msie: "9.0"}); // false
|
|||||||
/**
|
/**
|
||||||
* specific user agent
|
* specific user agent
|
||||||
*/
|
*/
|
||||||
bowser.check({chrome: 45}, window.navigator.userAgent); // true
|
bowser.check({chrome: "45"}, window.navigator.userAgent); // true
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* but false in strict mode
|
* 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`
|
### bowser.compareVersions(versions`:Array<String>`)`:Number`
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
"sniff",
|
"sniff",
|
||||||
"detection"
|
"detection"
|
||||||
],
|
],
|
||||||
"version": "1.4.6",
|
"version": "1.5.0",
|
||||||
"homepage": "https://github.com/ded/bowser",
|
"homepage": "https://github.com/ded/bowser",
|
||||||
"author": "Dustin Diaz <dustin@dustindiaz.com> (http://dustindiaz.com)",
|
"author": "Dustin Diaz <dustin@dustindiaz.com> (http://dustindiaz.com)",
|
||||||
"main": "./src/bowser.js",
|
"main": "./src/bowser.js",
|
||||||
|
Loading…
Reference in New Issue
Block a user