Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Commit

Permalink
Adding detection support for BB10
Browse files Browse the repository at this point in the history
  • Loading branch information
jansepar committed Jan 31, 2013
1 parent 9f19113 commit 0a45e29
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion vendor/tags/6/bootstrap.html
Expand Up @@ -65,7 +65,7 @@
} }


})(function() { })(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 }}'] return [true, '{{ mobifyjsPath }}']
} }
}); });
Expand Down
2 changes: 1 addition & 1 deletion vendor/tags/7/bootstrap.html
Expand Up @@ -41,7 +41,7 @@
setTimeout(next); setTimeout(next);


})(function() { })(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 }}'] return [1, '{{ mobifyjsPath }}']
} }
}); });
Expand Down
4 changes: 2 additions & 2 deletions vendor/tags/o/bootstrap.html
Expand Up @@ -3,7 +3,7 @@


window.Mobify = {points: [+new Date], tagVersion: [1, 0]}; 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); , optedOut = /mobify-path=($|;)/.test(document.cookie);


if (!isMobile || optedOut) { if (!isMobile || optedOut) {
Expand All @@ -21,4 +21,4 @@
}); });


})(this, document, '{{ mobifyjsPath }}'); })(this, document, '{{ mobifyjsPath }}');
</script> </script>

0 comments on commit 0a45e29

Please sign in to comment.