cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject [01/15] git commit: CB-5532 Fix
Date Fri, 13 Dec 2013 16:17:57 GMT
Updated Branches:
  refs/heads/android-file [created] a83ae5689


CB-5532 Fix


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/2685ae6d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/2685ae6d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/2685ae6d

Branch: refs/heads/android-file
Commit: 2685ae6dfa605da0a692eb5e60ccee2c12a250e2
Parents: 6b0ab74
Author: Ian Clelland <iclelland@chromium.org>
Authored: Wed Dec 11 09:57:32 2013 -0500
Committer: Ian Clelland <iclelland@chromium.org>
Committed: Wed Dec 11 09:57:32 2013 -0500

----------------------------------------------------------------------
 www/FileWriter.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/2685ae6d/www/FileWriter.js
----------------------------------------------------------------------
diff --git a/www/FileWriter.js b/www/FileWriter.js
index 7b3a007..786e994 100644
--- a/www/FileWriter.js
+++ b/www/FileWriter.js
@@ -118,7 +118,7 @@ FileWriter.prototype.write = function(data) {
 
     // Mark data type for safer transport over the binary bridge
     isBinary = supportsBinary && (data instanceof ArrayBuffer);
-    if (isBinary) {
+    if (isBinary && ['windowsphone', 'windows8'].indexOf(cordova.platformId) >=
0) {
         // create a plain array, using the keys from the Uint8Array view so that we can serialize
it
         data = Array.apply(null, new Uint8Array(data));
     }


Mime
View raw message