Skip to content

Commit 84e4584

Browse files
committed
Update README
1 parent 99c4988 commit 84e4584

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -423,12 +423,14 @@ Specifies the remove-button's width and height (they are equal). If set to `0`,
423423

424424
#### generateBlob( callback: function, mimeType: string, compressionRate: number )
425425
- Creates a Blob object representing the image contained in the canvas. Look up argument definition [here](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob).
426+
- If there is no image, the first argument of callback function is `null`.
426427

427428
#### promisedBlob( mimeType: string, compressionRate: number )
428-
- This method returns a `Promise` wrapping around `generateBlob()`, so that you can use `async/await` syntax instead of a callback to get blob data, it's simpler.
429+
- This method returns a `Promise` wrapping around `generateBlob()`, so that you can use `async/await` syntax instead of a callback to get blob data, it's simpler.
429430
```js
430431
const blob = await this.myCroppa.promisedBlob()
431432
```
433+
- If there is no image, it will resolve `null`.
432434

433435
#### getMetadata()
434436
- Require v0.3.0+

0 commit comments

Comments
 (0)