1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

add seamonkey

This commit is contained in:
plukevdh 2011-11-16 22:18:22 -05:00
parent 07f1d65f56
commit 2be132a7a5

View File

@ -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()