diff --git a/src/bowser.js b/src/bowser.js index 252321e..9c1e4f7 100644 --- a/src/bowser.js +++ b/src/bowser.js @@ -14,9 +14,15 @@ safari = /safari/i.test(ua) && !chrome, opera = /opera/i.test(ua), firefox = /firefox/i.test(ua), - gecko = /gecko\//i.test(ua); + gecko = /gecko\//i.test(ua), + info; function bowser() { + info = info ? info : detect(); + return info; + } + + function detect() { if (ie) { return {