Skip to content

Commit

Permalink
docs: clairfy work script location
Browse files Browse the repository at this point in the history
  • Loading branch information
alanshaw committed Jun 25, 2024
1 parent 23e3b41 commit e306ed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ npm install @web3-storage/piece-hasher-worker
```js
import * as PieceHasher from '@web3-storage/piece-hasher-worker'
```
2. Make the worker script available for your application to download. i.e. the file at `./node_modules/@web3-storage/piece-hasher-worker/worker.js`
2. Make the worker script available for your application to download. i.e. the file at `./node_modules/@web3-storage/piece-hasher-worker/worker.min.js`. It MUST be hosted on the same domain as your application.
3. Create a hasher passing the worker script URL, and create a multihash from some data:
```js
const pieceHasher = PieceHasher.create('https://example.org/worker.js')
Expand Down

0 comments on commit e306ed9

Please sign in to comment.