Skip to content

Commit

Permalink
Merge branch 'CB-8498-take2' of https://github.com/vldmrrr/cordova-pl…
Browse files Browse the repository at this point in the history
  • Loading branch information
purplecabbage committed Jun 18, 2015
2 parents 1149840 + 363dd02 commit 2e147ba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/windows/CameraProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,12 @@ function takePictureFromFileWindows(successCallback, errorCallback, args) {
else {
var storageFolder = getAppData().localFolder;
file.copyAsync(storageFolder, file.name, Windows.Storage.NameCollisionOption.replaceExisting).done(function (storageFile) {
successCallback(URL.createObjectURL(storageFile));
if(destinationType == Camera.DestinationType.NATIVE_URI) {
successCallback("ms-appdata:///local/" + storageFile.name);
}
else {
successCallback(URL.createObjectURL(storageFile));
}
}, function () {
errorCallback("Can't access localStorage folder.");
});
Expand Down

0 comments on commit 2e147ba

Please sign in to comment.