mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
add seamonkey
This commit is contained in:
parent
07f1d65f56
commit
2be132a7a5
@ -11,7 +11,7 @@
|
|||||||
* IE: "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)"
|
* IE: "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)"
|
||||||
* Firefox: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0"
|
* Firefox: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0"
|
||||||
* iPhone: "Mozilla/5.0 (iPhone Simulator; U; CPU iPhone OS 4_3_2 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8H7 Safari/6533.18.5"
|
* iPhone: "Mozilla/5.0 (iPhone Simulator; U; CPU iPhone OS 4_3_2 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8H7 Safari/6533.18.5"
|
||||||
* iPad: "Mozilla/5.0 (iPad; U; CPU OS 4_3_2 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8H7 Safari/6533.18.5",
|
* iPad: "Mozilla/5.0 (iPad; U; CPU OS 4_3_2 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8H7 Safari/6533.18.5",
|
||||||
* Android: "Mozilla/5.0 (Linux; U; Android 2.3.4; en-us; T-Mobile G2 Build/GRJ22) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"
|
* Android: "Mozilla/5.0 (Linux; U; Android 2.3.4; en-us; T-Mobile G2 Build/GRJ22) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -26,6 +26,7 @@
|
|||||||
, opera = /opera/i.test(ua)
|
, opera = /opera/i.test(ua)
|
||||||
, firefox = /firefox/i.test(ua)
|
, firefox = /firefox/i.test(ua)
|
||||||
, gecko = /gecko\//i.test(ua)
|
, gecko = /gecko\//i.test(ua)
|
||||||
|
, seamonkey = /seamonkey\//i.test(ua)
|
||||||
, webkitVersion = /version\/(\d+(\.\d+)?)/i
|
, webkitVersion = /version\/(\d+(\.\d+)?)/i
|
||||||
|
|
||||||
function detect() {
|
function detect() {
|
||||||
@ -77,7 +78,10 @@
|
|||||||
if (firefox) o.firefox = t
|
if (firefox) o.firefox = t
|
||||||
return o
|
return o
|
||||||
}
|
}
|
||||||
|
if (seamonkey) return {
|
||||||
|
seamonkey: t
|
||||||
|
, version: ua.match(/seamonkey\/(\d+(\.\d+)?)/i)[1]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var bowser = detect()
|
var bowser = detect()
|
||||||
|
Loading…
Reference in New Issue
Block a user