Skip to content

Commit

Permalink
simplify picture.copyAsync
Browse files Browse the repository at this point in the history
  • Loading branch information
DisruptiveMind committed Sep 16, 2018
1 parent a201722 commit dca4b9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/windows/CameraProxy.js
Expand Up @@ -807,9 +807,9 @@ function savePhoto(picture, options, successCallback, errorCallback) {
pictureName = pictureName.replace(/\.png$/, ".jpg");
}

picture
.copyAsync(getAppData().localFolder, pictureName, OptUnique)
.done(function (copiedFile) { successCallback("ms-appdata:///local/" + copiedFile.name); }, errorCallback);
picture.copyAsync(getAppData().localFolder, pictureName, OptUnique).done(function (copiedFile) {
successCallback('ms-appdata:///local/' + copiedFile.name);
}, errorCallback);
}
} else {
if (options.targetHeight > 0 && options.targetWidth > 0) {
Expand Down

0 comments on commit dca4b9c

Please sign in to comment.