From 873bb850a44d3b388fe6742c6aadc6e0caaae30b Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Wed, 21 Mar 2012 12:03:36 -0700 Subject: Fix: Chrome 19 I/O Bug Fixed creating new files. --- js/io/system/coreioapi.js | 4 ++-- manifest.json | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/js/io/system/coreioapi.js b/js/io/system/coreioapi.js index f428a229..ae249480 100755 --- a/js/io/system/coreioapi.js +++ b/js/io/system/coreioapi.js @@ -393,12 +393,12 @@ exports.CoreIoApi = Montage.create(Component, { xhr = new XMLHttpRequest(); // xhr.open("POST", serviceURL, false); - xhr.responseType = "arraybuffer"; + //xhr.responseType = "arraybuffer"; if(file.contentType && file.contentType.length) xhr.setRequestHeader("Content-Type", file.contentType); else xhr.setRequestHeader("Content-Type", "text/plain"); - + if (file.contents) xhr.send(file.contents); else diff --git a/manifest.json b/manifest.json index 80d8a5be..0500101b 100644 --- a/manifest.json +++ b/manifest.json @@ -12,9 +12,7 @@ }, "permissions": [ "unlimitedStorage", - "notifications", - "webRequest", - "webRequestBlocking" + "notifications" ], "requirements": { "3D": { -- cgit v1.2.3