Skip to content

Commit

Permalink
docs: fix typo (#1864)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason-Cooke authored and niklasvh committed Jun 18, 2019
1 parent 81dcf7b commit 9a63797
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 @@ -42,7 +42,7 @@ support [older browsers](http://caniuse.com/#search=promise) that do not nativel
To render an `element` with html2canvas, simply call:
` html2canvas(element[, options]);`

The function returns a [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) containing the `<canvas>` element. Simply add a promise fullfillment handler to the promise using `then`:
The function returns a [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) containing the `<canvas>` element. Simply add a promise fulfillment handler to the promise using `then`:

html2canvas(document.body).then(function(canvas) {
document.body.appendChild(canvas);
Expand Down

0 comments on commit 9a63797

Please sign in to comment.