mirror of
https://github.com/lancedikson/bowser
synced 2026-03-02 03:40:27 +00:00
- export browser as an object and not a function
- bump package
This commit is contained in:
@@ -18,11 +18,11 @@
|
||||
info;
|
||||
|
||||
function bowser() {
|
||||
info = info ? info : detect();
|
||||
return info;
|
||||
info = info ? info : detect();
|
||||
return info;
|
||||
}
|
||||
|
||||
function detect() {
|
||||
|
||||
function detect() {
|
||||
|
||||
if (ie) {
|
||||
return {
|
||||
@@ -64,7 +64,7 @@
|
||||
}
|
||||
|
||||
typeof module !== 'undefined' && module.exports ?
|
||||
(module.exports.browser = bowser) :
|
||||
(module.exports.browser = bowser()) :
|
||||
(context.bowser = bowser);
|
||||
|
||||
}(this);
|
||||
Reference in New Issue
Block a user