mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
bump a
version browsers
This commit is contained in:
parent
9689716763
commit
dff5cc37be
@ -112,7 +112,7 @@
|
|||||||
, blackberry: t
|
, blackberry: t
|
||||||
, version: versionIdentifier || getFirstMatch(/blackberry[\d]+\/(\d+(\.\d+)?)/i)
|
, version: versionIdentifier || getFirstMatch(/blackberry[\d]+\/(\d+(\.\d+)?)/i)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (/(web|hpw)os/i.test(ua)) {
|
else if (/(web|hpw)os/i.test(ua)) {
|
||||||
result = {
|
result = {
|
||||||
name: 'WebOS'
|
name: 'WebOS'
|
||||||
@ -197,19 +197,19 @@
|
|||||||
|
|
||||||
// Graded Browser Support
|
// Graded Browser Support
|
||||||
// http://developer.yahoo.com/yui/articles/gbs
|
// http://developer.yahoo.com/yui/articles/gbs
|
||||||
if ((result.msie && result.version >= 9) ||
|
if ((result.msie && result.version >= 10) ||
|
||||||
(result.chrome && result.version >= 20) ||
|
(result.chrome && result.version >= 20) ||
|
||||||
(result.firefox && result.version >= 10.0) ||
|
(result.firefox && result.version >= 20.0) ||
|
||||||
(result.safari && result.version >= 5) ||
|
(result.safari && result.version >= 6) ||
|
||||||
(result.opera && result.version >= 10.0) ||
|
(result.opera && result.version >= 10.0) ||
|
||||||
(result.ios && result.osversion && result.osversion.split(".")[0] >= 6)
|
(result.ios && result.osversion && result.osversion.split(".")[0] >= 6)
|
||||||
) {
|
) {
|
||||||
result.a = t;
|
result.a = t;
|
||||||
}
|
}
|
||||||
else if ((result.msie && result.version < 9) ||
|
else if ((result.msie && result.version < 10) ||
|
||||||
(result.chrome && result.version < 20) ||
|
(result.chrome && result.version < 20) ||
|
||||||
(result.firefox && result.version < 10.0) ||
|
(result.firefox && result.version < 20.0) ||
|
||||||
(result.safari && result.version < 5) ||
|
(result.safari && result.version < 6) ||
|
||||||
(result.opera && result.version < 10.0) ||
|
(result.opera && result.version < 10.0) ||
|
||||||
(result.ios && result.osversion && result.osversion.split(".")[0] < 6)
|
(result.ios && result.osversion && result.osversion.split(".")[0] < 6)
|
||||||
) {
|
) {
|
||||||
|
Loading…
Reference in New Issue
Block a user