Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding detection support for BB10

  • Loading branch information...
commit 0a45e29324a829ad4a05f33af78b047a95df2116 1 parent 9f19113
@jansepar jansepar authored
View
2  vendor/tags/6/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 }}']
}
});
View
2  vendor/tags/7/bootstrap.html
@@ -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 }}']
}
});
View
4 vendor/tags/o/bootstrap.html
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.