Skip to content

Commit

Permalink
fix: remove console log
Browse files Browse the repository at this point in the history
  • Loading branch information
alanshaw committed Jun 25, 2024
1 parent e306ed9 commit 756aa8e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ export const digest = async (input, workerURL) => {
const bytes = await new Promise((resolve, reject) => {
const worker = new Worker(workerURL ?? 'worker.min.js')
worker.onmessage = e => resolve(e.data)
worker.onerror = e => {
console.error(e)
reject(e.error)
}
worker.onerror = e => reject(e.error)
worker.postMessage(input)
})
return /** @type {import('multiformats').MultihashDigest<typeof code>} */ (
Expand Down

0 comments on commit 756aa8e

Please sign in to comment.