Skip to content

Commit

Permalink
Added opera and fennec user agents. Fixed blackberry user agent bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Maffett committed Jan 16, 2012
1 parent d7ef0f2 commit 40b6c28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion jq.mobi.js
Expand Up @@ -667,7 +667,9 @@ var jq = (function () {
$.os.webos = userAgent.match(/(webOS|hpwOS)[\s\/]([\d.]+)/)?true:false,
$.os.touchpad = $.os.webos && userAgent.match(/TouchPad/)?true:false;
$.os.ios=$.os.ipad||$.os.iphone;
$.os.blackberry=UserAgent.match(/BlackBerry/)||UserAgent.match(/PlayBook/)?true:false;
$.os.blackberry=userAgent.match(/BlackBerry/)||userAgent.match(/PlayBook/)?true:false;
$.os.opera=userAgent.match(/Opera/)?true:false;
$.os.fennec=userAgent.match(/fennec/)?true:false;
})($,navigator.userAgent);

if(typeof String.prototype.trim !== 'function') {
Expand Down
2 changes: 1 addition & 1 deletion jq.mobi.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 40b6c28

Please sign in to comment.