Skip to content

Commit

Permalink
Fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
MCJack123 authored Sep 1, 2022
1 parent b40bc40 commit f8ca92e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function run(assets) {
if (filename === "" || asset.name !== filename) { // don't hash the hash file (if the file has the same name)
numAwaiting++;
fetch(asset.browser_download_url).then(res => res.arrayBuffer()).then(buffer => {
hashes[asset.name] = hasha(buffer, {algorithm: algorithm});
hashes[asset.name] = hasha(new Uint8Array(buffer), {algorithm: algorithm});
if (--numAwaiting === 0) {
let result = "";
for (const k in hashes) result += hashes[k] + " " + k + "\n";
Expand Down

0 comments on commit f8ca92e

Please sign in to comment.