Skip to content

Commit

Permalink
Added $.reel.re.ua regexp stack for own user agent sensing #174
Browse files Browse the repository at this point in the history
  • Loading branch information
pisi committed Feb 20, 2013
1 parent 3bf7db2 commit 614962c
Show file tree
Hide file tree
Showing 2 changed files with 531 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jquery.reel.js
Expand Up @@ -1887,6 +1887,12 @@ jQuery.reel || (function($, window, document, undefined){
re: {
/* Valid image file format */
image: /^(.*)\.(jpg|jpeg|png|gif)\??.*$/,
/* User agent failsafe stack */
ua: [
/(msie|opera|firefox|chrome|safari)[ \/:]([\d.]+)/i,
/(webkit)\/([\d.]+)/i,
/(mozilla)\/([\d.]+)/i
],
/* Multi touch devices */
touchy_agent: /iphone|ipod|ipad|android|fennec|rim tablet/i,
/* Lazy (low-CPU mobile devices) */
Expand Down

0 comments on commit 614962c

Please sign in to comment.