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
@ -26,6 +26,7 @@
|
||||
, opera = /opera/i.test(ua)
|
||||
, firefox = /firefox/i.test(ua)
|
||||
, gecko = /gecko\//i.test(ua)
|
||||
, seamonkey = /seamonkey\//i.test(ua)
|
||||
, webkitVersion = /version\/(\d+(\.\d+)?)/i
|
||||
|
||||
function detect() {
|
||||
@ -77,7 +78,10 @@
|
||||
if (firefox) o.firefox = t
|
||||
return o
|
||||
}
|
||||
|
||||
if (seamonkey) return {
|
||||
seamonkey: t
|
||||
, version: ua.match(/seamonkey\/(\d+(\.\d+)?)/i)[1]
|
||||
}
|
||||
}
|
||||
|
||||
var bowser = detect()
|
||||
|
Loading…
Reference in New Issue
Block a user