Commit 5a1fae4c authored by Sven Franck's avatar Sven Franck

debug: buffer

parent 7506587b
......@@ -2453,7 +2453,7 @@ function dataURItoBlob(dataURI) {
for(var i = 0; i < binary.length; i++) {
array.push(binary.charCodeAt(i));
}
return new Blob([new Uint8Array(array)], {type: m[1]});
return new Blob([new Uint8Array(array).buffer], {type: m[1]});
}
......@@ -4381,7 +4381,7 @@ function dataURItoBlob(dataURI) {
for(var i = 0; i < binary.length; i++) {
array.push(binary.charCodeAt(i));
}
return new Blob([new Uint8Array(array)], {type: m[1]});
return new Blob([new Uint8Array(array).buffer], {type: m[1]});
}
hello.init({
......
......@@ -1005,7 +1005,9 @@ PubSub implementation
array[i] = data.charCodeAt(i);
}
blob = new Blob([array], {type: "application/pdf"});
// here sven !!!
//blob = new Blob([array], {type: "application/pdf"});
blob = new Blob([array.buffer], {type: "application/pdf"});
saveAs(blob, options);
break;
......
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