incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From macdo...@apache.org
Subject android commit: Fix problem in Android template example getPicture
Date Tue, 22 May 2012 18:48:22 GMT
Updated Branches:
  refs/heads/master 6b24f2d54 -> fae0c3dcf


Fix problem in Android template example getPicture


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/commit/fae0c3dc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/fae0c3dc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/fae0c3dc

Branch: refs/heads/master
Commit: fae0c3dcfd5a73e5a4cbd47f218e52e03ad73eed
Parents: 6b24f2d
Author: macdonst <simon.macdonald@gmail.com>
Authored: Tue May 22 14:48:02 2012 -0400
Committer: macdonst <simon.macdonald@gmail.com>
Committed: Tue May 22 14:48:02 2012 -0400

----------------------------------------------------------------------
 .../cordova/templates/project/assets/www/main.js   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/fae0c3dc/bin/templates/project/cordova/templates/project/assets/www/main.js
----------------------------------------------------------------------
diff --git a/bin/templates/project/cordova/templates/project/assets/www/main.js b/bin/templates/project/cordova/templates/project/assets/www/main.js
index 739a02e..3a8b04a 100644
--- a/bin/templates/project/cordova/templates/project/assets/www/main.js
+++ b/bin/templates/project/cordova/templates/project/assets/www/main.js
@@ -88,7 +88,7 @@ function dump_pic(data) {
     viewport.style.position = "absolute";
     viewport.style.top = "10px";
     viewport.style.left = "10px";
-    document.getElementById("test_img").src = "data:image/jpeg;base64," + data;
+    document.getElementById("test_img").src = data;
 }
 
 function fail(msg) {


Mime
View raw message