mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
commit
f204fbeca5
@ -232,6 +232,17 @@
|
|||||||
|
|
||||||
var bowser = detect(typeof navigator !== 'undefined' ? navigator.userAgent : '')
|
var bowser = detect(typeof navigator !== 'undefined' ? navigator.userAgent : '')
|
||||||
|
|
||||||
|
bowser.test = function (browserList) {
|
||||||
|
for (var i = 0; i < browserList.length; ++i) {
|
||||||
|
var browserItem = browserList[i];
|
||||||
|
if (typeof browserItem=== 'string') {
|
||||||
|
if (browserItem in bowser) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set our detect method to the main bowser object so we can
|
* Set our detect method to the main bowser object so we can
|
||||||
|
Loading…
Reference in New Issue
Block a user