|
|
@ -12,7 +12,7 @@ |
|
|
|
* See the License for the specific language governing permissions and |
|
|
|
* See the License for the specific language governing permissions and |
|
|
|
* limitations under the License. |
|
|
|
* limitations under the License. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
/* globals MozBlobBuilder, URL, global */ |
|
|
|
/* globals URL, global */ |
|
|
|
|
|
|
|
|
|
|
|
'use strict'; |
|
|
|
'use strict'; |
|
|
|
|
|
|
|
|
|
|
@ -1506,10 +1506,7 @@ var createBlob = function createBlob(data, contentType) { |
|
|
|
if (typeof Blob !== 'undefined') { |
|
|
|
if (typeof Blob !== 'undefined') { |
|
|
|
return new Blob([data], { type: contentType }); |
|
|
|
return new Blob([data], { type: contentType }); |
|
|
|
} |
|
|
|
} |
|
|
|
// Blob builder is deprecated in FF14 and removed in FF18.
|
|
|
|
warn('The "Blob" constructor is not supported.'); |
|
|
|
var bb = new MozBlobBuilder(); |
|
|
|
|
|
|
|
bb.append(data); |
|
|
|
|
|
|
|
return bb.getBlob(contentType); |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
var createObjectURL = (function createObjectURLClosure() { |
|
|
|
var createObjectURL = (function createObjectURLClosure() { |
|
|
|