Skip to content

Commit 1051db4

Browse files
docs(clipboard-manager): update readImage doc to use async rgba() instead of bytes (#2077)
1 parent ee3fb1d commit 1051db4

File tree

1 file changed

+1
-1
lines changed
  • plugins/clipboard-manager/guest-js

1 file changed

+1
-1
lines changed

plugins/clipboard-manager/guest-js/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ async function writeImage(
9090
* import { readImage } from '@tauri-apps/plugin-clipboard-manager';
9191
*
9292
* const clipboardImage = await readImage();
93-
* const blob = new Blob([clipboardImage.bytes], { type: 'image' })
93+
* const blob = new Blob([await clipboardImage.rbga()], { type: 'image' })
9494
* const url = URL.createObjectURL(blob)
9595
* ```
9696
* @since 2.0.0

0 commit comments

Comments
 (0)