cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject [1/2] spec commit: Fix camera test to treat content URLs as local
Date Tue, 15 Apr 2014 19:26:40 GMT
Repository: cordova-mobile-spec
Updated Branches:
  refs/heads/master 9c6d91aa7 -> 4c1720479


Fix camera test to treat content URLs as local


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

Branch: refs/heads/master
Commit: 18617eefb994e42d1177072a8521705951f5d08d
Parents: 9c6d91a
Author: Ian Clelland <iclelland@chromium.org>
Authored: Tue Apr 15 14:01:06 2014 -0400
Committer: Ian Clelland <iclelland@chromium.org>
Committed: Tue Apr 15 14:01:06 2014 -0400

----------------------------------------------------------------------
 camera/index.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/18617eef/camera/index.html
----------------------------------------------------------------------
diff --git a/camera/index.html b/camera/index.html
index 6340b8c..b74dabb 100644
--- a/camera/index.html
+++ b/camera/index.html
@@ -96,7 +96,7 @@
     function getPictureWin(data) {
         setPicture(data);
         // TODO: Fix resolveLocalFileSystemURI to work with native-uri.
-        if (pictureUrl.indexOf('file:') == 0) {
+        if (pictureUrl.indexOf('file:') == 0 || pictureUrl.indexOf('content:') == 0) {
             resolveLocalFileSystemURI(data, function(e) {
                 fileEntry = e;
                 logCallback('resolveLocalFileSystemURI()', true)(e.toURL());


Mime
View raw message