summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2022-12-27 14:58:55 +0100
committerPierre Ossman <ossman@cendio.se>2022-12-27 15:00:13 +0100
commit74fe694cc4ae6239cbb4f7b65b7da8cef4778e2a (patch)
tree0134706cc9e726182572c0756f86b70fe0063be4
parentce534b85c140e11662a5839188471d5daf9bc278 (diff)
downloadnovnc-74fe694cc4ae6239cbb4f7b65b7da8cef4778e2a.tar.gz
Fix toBlob() documentation
These are copy-and-paste errors from the toDataURL() section.
-rw-r--r--docs/API.md8
1 files 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()