You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by be...@apache.org on 2013/01/02 23:44:25 UTC

spec commit: Fixes CB-2109 device.platform value in audio

Updated Branches:
  refs/heads/master 7aa657295 -> dbd91a50e


Fixes CB-2109 device.platform value in audio

The audio test file relies on device.platform in order to create
the file for recording on iOS.  Had to be updated to look for the
new value of "iOS"


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/dbd91a50
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/dbd91a50
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/dbd91a50

Branch: refs/heads/master
Commit: dbd91a50eb990ae177deed22aa32707550b09679
Parents: 7aa6572
Author: Becky Gibson <be...@apache.org>
Authored: Wed Jan 2 17:38:30 2013 -0500
Committer: Becky Gibson <be...@apache.org>
Committed: Wed Jan 2 17:38:30 2013 -0500

----------------------------------------------------------------------
 audio/index.html |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/dbd91a50/audio/index.html
----------------------------------------------------------------------
diff --git a/audio/index.html b/audio/index.html
index c404318..4edf37a 100644
--- a/audio/index.html
+++ b/audio/index.html
@@ -287,7 +287,7 @@
     function init() {
         document.addEventListener("deviceready", function() {
                 deviceReady = true;
-                if (device.platform.indexOf("iPhone") !=-1 || device.platform.indexOf("iPad") !=-1)
+                if (device.platform.indexOf("iOS") !=-1)
                 {
                      getRecordSrc();
                 } else if (typeof blackberry !== 'undefined') {