Permalink
Browse files

See #14: Detect any iOS 5 version.

  • Loading branch information...
1 parent cfbd3b5 commit b7cd3282b42d475b28a7d7c35a84ee37608356cb @bigspotteddog committed Feb 19, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 jquery-scrolltofixed-min.js
  2. +1 −1 jquery-scrolltofixed.js

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -279,7 +279,7 @@
// what to do with them, or until iOS5 comes out which is supposed
// to support position:fixed.
if (navigator.platform === 'iPad' || navigator.platform === 'iPhone' || navigator.platform === "iPod") {
- if (!navigator.userAgent.match(/OS 5_\d like Mac OS X/i)) {
+ if (!navigator.userAgent.match(/OS 5_.*\ like Mac OS X/i)) {
return;
}
}

0 comments on commit b7cd328

Please sign in to comment.