Skip to content

Commit

Permalink
fix(ReaderFactory): Remove totalCount
Browse files Browse the repository at this point in the history
  • Loading branch information
floryst committed Apr 16, 2020
1 parent fbf5afe commit f6b9e49
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/io/ReaderFactory.js
Expand Up @@ -278,15 +278,13 @@ function importBase64Dataset(
) {
const chunks = [];
const bytes = atob(base64String);
let totalCount = 0;
for (let offset = 0; offset < bytes.length; offset += chunkSize) {
const slice = bytes.slice(offset, offset + chunkSize);
const array = new Uint8Array(slice.length);
for (let i = 0; i < slice.length; i++) {
array[i] = slice.charCodeAt(i);
}
chunks.push(array);
totalCount += array.length;
}
const blob = new Blob(chunks, { type: 'application/octet-stream' });
const file = new File([blob], fileName);
Expand Down

0 comments on commit f6b9e49

Please sign in to comment.