Skip to content

Commit

Permalink
docs(clipboard-manager): update readImage doc to use async rgba() ins…
Browse files Browse the repository at this point in the history
…tead of bytes (#2077)
  • Loading branch information
ViniciusCestarii authored Nov 19, 2024
1 parent ee3fb1d commit 1051db4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/clipboard-manager/guest-js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ async function writeImage(
* import { readImage } from '@tauri-apps/plugin-clipboard-manager';
*
* const clipboardImage = await readImage();
* const blob = new Blob([clipboardImage.bytes], { type: 'image' })
* const blob = new Blob([await clipboardImage.rbga()], { type: 'image' })
* const url = URL.createObjectURL(blob)
* ```
* @since 2.0.0
Expand Down

0 comments on commit 1051db4

Please sign in to comment.