Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed Mar 28, 2023
1 parent d556a99 commit 8e41382
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/js/fileupload2.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,23 +78,23 @@ $(document).ready(function() {

switch (checksumAlgName) {
case 'MD5':
js.src = "https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/components/md5.js";
js.src = "https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/md5.js";
break;
case 'SHA-1':
js.src = "https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/components/sha1.js";
js.src = "https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/sha1.js";
break;
case 'SHA-256':
js.src = "https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/components/sha256.js";
js.src = "https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/sha256.js";
break;
case 'SHA-512':
js.src = "https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/components/x64-core.js";
js.src = "https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/x64-core.js";
head.appendChild(js);
js = document.createElement("script");
js.type = "text/javascript";
js.src = "https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/components/sha512.js";
js.src = "https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/sha512.js";
break;
default:
js.src = "https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/components/md5.js";
js.src = "https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/md5.js";
}
head.appendChild(js);
retrieveDatasetInfo();
Expand Down Expand Up @@ -580,7 +580,7 @@ var fileUpload = class fileUploadClass {
console.log('checksum done');
this.hashVal = checksum;
this.handleDirectUpload();
}, err => console.error(err));
}).catch(err => console.error(err));
} else {
console.log("Abandoned: " + this.storageId);
}
Expand Down

0 comments on commit 8e41382

Please sign in to comment.