Permalink
Browse files

Adding x-bb10 in enhance.js

  • Loading branch information...
1 parent b1affff commit 5b3465629f9f33c56ef4cc7a602db572892fcb48 @jansepar jansepar committed Jan 31, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 api/enhance.js
View
@@ -1,6 +1,6 @@
// Polyfills the `orientationchange` event.
// Exposes Touch, OS, HD and Orientation properties on `Mobify.config`.
-// x-desktop, x-ios, x-android, x-blackberry, x-webos, x-nokia
+// x-desktop, x-ios, x-android, x-blackberry, x-webos, x-nokia, x-bb10
// x-notouch, x-touch
// x-landscape, x-portrait
// x-sd, x-hd x-hd15 x-hd20
@@ -20,7 +20,7 @@ var $test = $('<div>', {id: 'mc-test'})
, touch = 'ontouchend' in document
// OS: ios, android, nokia, blackberry, webos, desktop
- , osMatch = /(ip(od|ad|hone)|android|nokia|blackberry|webos)/gi.exec(navigator.userAgent)
+ , osMatch = /(ip(od|ad|hone)|android|nokia|blackberry|webos|bb10)/gi.exec(navigator.userAgent)
, os = (osMatch && (osMatch[2] ? 'ios' : osMatch[1].toLowerCase())) || 'desktop'
, tablet = /ipad|android(?!.*mobile)/i.test(navigator.userAgent)

0 comments on commit 5b34656

Please sign in to comment.