Skip to content

Commit

Permalink
fix(clipboard): alt_text in write_html command not being passed w…
Browse files Browse the repository at this point in the history
…ith correct argument name (#2099)
  • Loading branch information
rasteiner authored Nov 26, 2024
1 parent fef76bd commit 3fa0fc0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changes/fix-clipboard-html-write.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
clipboard-manager-js: patch
---

Fix clipboard manager client side api not copying fallback alternative text when calling `writeHtml`.
2 changes: 1 addition & 1 deletion plugins/clipboard-manager/api-iife.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions plugins/clipboard-manager/guest-js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ async function readImage(): Promise<Image> {
*
* @since 2.0.0
*/
async function writeHtml(html: string, altHtml?: string): Promise<void> {
async function writeHtml(html: string, altText?: string): Promise<void> {
await invoke('plugin:clipboard-manager|write_html', {
html,
altHtml
altText
})
}

Expand Down

0 comments on commit 3fa0fc0

Please sign in to comment.