From 74fe694cc4ae6239cbb4f7b65b7da8cef4778e2a Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 27 Dec 2022 14:58:55 +0100 Subject: Fix toBlob() documentation These are copy-and-paste errors from the toDataURL() section. --- docs/API.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/API.md b/docs/API.md index ddf392f..3e9e75c 100644 --- a/docs/API.md +++ b/docs/API.md @@ -476,9 +476,9 @@ screen encoded as [`Blob`][mdn-blob]. ##### Syntax - RFB.toDataURL( callback ); - RFB.toDataURL( callback, type ); - RFB.toDataURL( callback, type, quality ); + RFB.toBlob( callback ); + RFB.toBlob( callback, type ); + RFB.toBlob( callback, type, quality ); ###### Parameters @@ -489,7 +489,7 @@ screen encoded as [`Blob`][mdn-blob]. **`type`** *Optional* - A string indicating the requested MIME type of the image -**`encoderOptions`** *Optional* +**`quality`** *Optional* - A number between 0 and 1 indicating the image quality. #### RFB.toDataURL() -- cgit v1.2.1