Skip to content

Commit

Permalink
fix: version and REDME.md
Browse files Browse the repository at this point in the history
  • Loading branch information
isalikov committed Jan 16, 2024
1 parent fa19eaf commit cb3e0be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ Cropper for large images
import { HqCropper } from 'hq-cropper'

function handleCrop(base64: string, blob: Blob | null) {
document.querySelector('img#image-preview').setAttribute('src', croppedImage)
document.querySelector('img#image-preview').setAttribute('src', base64)
}

const hqCropper = HqCropper(handleCrop)

document.querySelector('button#change-image-button')
.addEventListener('click', hqCropper.open, false)

```

### React usage
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hq-cropper",
"version": "3.1.0",
"version": "3.1.1",
"description": "Image cropper tool",
"main": "dist/bundle.cjs.js",
"module": "index.js",
Expand Down

0 comments on commit cb3e0be

Please sign in to comment.