Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Commit

Permalink
Merge pull request #73 from nationalarchives/remove-wasm-progress
Browse files Browse the repository at this point in the history
Temporarily revert WebAssembly progress monitor
  • Loading branch information
TomJKing authored Oct 25, 2019
2 parents 2462faa + 8455934 commit 0cdfc61
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions js-src/upload/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,9 @@ const onDrop: (e: DragEvent) => void = async e => {
const getFileInfo: (
tdrFile: TdrFile
) => Promise<CreateFileInput> = async tdrFile => {
const progress: (percentage: number) => void = percentage =>
console.log(percentage);
let clientSideChecksum;
if (wasmSupported) {
clientSideChecksum = await wasm.generate_checksum(tdrFile, progress);
clientSideChecksum = await wasm.generate_checksum(tdrFile);
} else {
clientSideChecksum = await generateHash(tdrFile);
}
Expand Down

0 comments on commit 0cdfc61

Please sign in to comment.