Commit 658dcb2d authored by Sven Franck's avatar Sven Franck

Safari: testing for undefined JIO.ajax response

parent 8a3003cb
......@@ -3048,14 +3048,18 @@
* @return {object} object including baggage and reply
*/
util.getFromDisk = function (parcel) {
console.log("GETTING FROM DISK")
var response,
put = function (e) {
response = e.target.responseText;
console.log("Put")
console.log(e.target.responseText);
response = util.parseIfNeeded(e.target.responseText);
return parcel.store.put({
"_id": parcel.file
});
},
putAttachment = function () {
console.log("putting attachment");
return parcel.store.putAttachment({
"_id": parcel.file,
"_attachment": parcel.attachment,
......@@ -3073,6 +3077,8 @@
.then(putAttachment)
.then(function () {
// stored in JIO, continue
console.log("DONE storing in JIO")
console.log(response)
return {
"response": response,
"baggage": parcel.baggage
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment