You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bh...@apache.org on 2013/05/21 16:39:03 UTC
spec commit: [CB-3399] Treat BB10 as separate platform from
BBOS/TabletOS for cordova.js loading
Updated Branches:
refs/heads/master 9a36f6ff0 -> ae18f3ea5
[CB-3399] Treat BB10 as separate platform from BBOS/TabletOS for cordova.js loading
Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/ae18f3ea
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/ae18f3ea
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/ae18f3ea
Branch: refs/heads/master
Commit: ae18f3ea59d0b53880644ef8f8dcc3d0ade6f76d
Parents: 9a36f6f
Author: Bryan Higgins <bh...@blackberry.com>
Authored: Wed May 15 13:34:20 2013 -0400
Committer: Bryan Higgins <bh...@blackberry.com>
Committed: Tue May 21 10:41:30 2013 -0400
----------------------------------------------------------------------
cordova-incl.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/ae18f3ea/cordova-incl.js
----------------------------------------------------------------------
diff --git a/cordova-incl.js b/cordova-incl.js
index dbcd1a6..c624996 100644
--- a/cordova-incl.js
+++ b/cordova-incl.js
@@ -24,7 +24,9 @@ if (/Android/.exec(navigator.userAgent)) {
PLAT = 'android';
} else if (/(iPad)|(iPhone)|(iPod)/.exec(navigator.userAgent)) {
PLAT = 'ios';
-} else if (/(BB10)|(PlayBook)|(BlackBerry)/.exec(navigator.userAgent)) {
+} else if (/(BB10)/.exec(navigator.userAgent)) {
+ PLAT = 'blackberry10';
+} else if (/(PlayBook)|(BlackBerry)/.exec(navigator.userAgent)) {
PLAT = 'blackberry';
}