Commit fedeb5cc authored by Tristan Cavelier's avatar Tristan Cavelier

default respond Blob type is "undefined" -> fixed to ""

parent be7fb2fe
...@@ -58,7 +58,7 @@ IODeferred.prototype.resolve = function (a, b) { ...@@ -58,7 +58,7 @@ IODeferred.prototype.resolve = function (a, b) {
if (this._method === 'getAttachment') { if (this._method === 'getAttachment') {
if (typeof weak.data === 'string') { if (typeof weak.data === 'string') {
weak.data = new Blob([weak.data], { weak.data = new Blob([weak.data], {
"type": weak.content_type || weak.mimetype "type": weak.content_type || weak.mimetype || ""
}); });
delete weak.content_type; delete weak.content_type;
delete weak.mimetype; delete weak.mimetype;
......
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