Fix for Safari

This commit is contained in:
Lifof
2013-03-17 22:26:20 +00:00
parent 22b347f7ea
commit 1afa1b5cef
+1 -1
View File
@@ -100,7 +100,7 @@ var Blob = (function (view) {
FBB_proto.append = function(data/*, endings*/) {
var bb = this.data;
// decode data to a binary string
if (Uint8Array && data instanceof ArrayBuffer) {
if (Uint8Array && (data instanceof ArrayBuffer || data instanceof Uint8Array)) {
if (can_apply_typed_arrays) {
bb.push(String.fromCharCode.apply(String, new Uint8Array(data)));
} else {