docs(clipboard-manager): update readImage doc to use async rgba() instead of bytes (#2077)

pull/1964/head
Vinicius Cestari 7 months ago committed by GitHub
parent ee3fb1dba6
commit 1051db406a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save