Permalink
Browse files

Adding detection support for BB10

  • Loading branch information...
1 parent 9f19113 commit 0a45e29324a829ad4a05f33af78b047a95df2116 @jansepar jansepar committed Jan 31, 2013
Showing with 4 additions and 4 deletions.
  1. +1 −1 vendor/tags/6/bootstrap.html
  2. +1 −1 vendor/tags/7/bootstrap.html
  3. +2 −2 vendor/tags/o/bootstrap.html
@@ -65,7 +65,7 @@
}
})(function() {
- if (/ip(hone|od|ad)|android|blackberry.*applewebkit/i.test(navigator.userAgent)){
+ if (/ip(hone|od|ad)|android|blackberry.*applewebkit|bb1\d.*mobile/i.test(navigator.userAgent)){
return [true, '{{ mobifyjsPath }}']
}
});
@@ -41,7 +41,7 @@
setTimeout(next);
})(function() {
- if (/ip(hone|od|ad)|android|blackberry.*applewebkit/i.test(navigator.userAgent)) {
+ if (/ip(hone|od|ad)|android|blackberry.*applewebkit|bb1\d.*mobile/i.test(navigator.userAgent)) {
return [1, '{{ mobifyjsPath }}']
}
});
@@ -3,7 +3,7 @@
window.Mobify = {points: [+new Date], tagVersion: [1, 0]};
-var isMobile = /ip(hone|od|ad)|android|blackberry.*applewebkit/i.test(navigator.userAgent)
+var isMobile = /ip(hone|od|ad)|android|blackberry.*applewebkit|bb1\d.*mobile/i.test(navigator.userAgent)
, optedOut = /mobify-path=($|;)/.test(document.cookie);
if (!isMobile || optedOut) {
@@ -21,4 +21,4 @@
});
})(this, document, '{{ mobifyjsPath }}');
-</script>
+</script>

0 comments on commit 0a45e29

Please sign in to comment.