Skip to content
Permalink
Browse files
CB-7429 Fixes image capture manual tests on windows
  • Loading branch information
Vladimir Kotikov committed Sep 12, 2014
1 parent 5dce4c1 commit 8f05569dfed1bafa380b93567830f7cfc36678ed
Showing 1 changed file with 4 additions and 0 deletions.
@@ -145,6 +145,10 @@ exports.defineManualTests = function (contentEl, createActionButton) {

function captureImageWin(mediaFiles) {
var path = mediaFiles[0].fullPath;
// Necessary since windows doesn't allow file URLs for <img> elements
if (cordova.platformId == 'windows' || cordova.platformId == 'windows8') {
path = mediaFiles[0].localURL;
}
log('Image captured: ' + path);
document.getElementById('camera_image').src = path;
}

0 comments on commit 8f05569

Please sign in to comment.