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

Commit

Permalink
Temporarily revert WebAssembly progress monitor
Browse files Browse the repository at this point in the history
Remove the console logs which happen when the WebAssembly checksum
calculator reports a progress update.

The version of the WebAssembly library which supports the `progress`
argument (version 0.1.5) has not yet been published to npm, so the
local npm build is failing. Removing the `progress` argument means
we can use the latest npm version (0.1.4).
  • Loading branch information
suzannehamilton committed Oct 25, 2019
1 parent 2462faa commit 8455934
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 8455934

Please sign in to comment.