Skip to content

Commit 3fa0fc0

Browse files
authored
fix(clipboard): alt_text in write_html command not being passed with correct argument name (#2099)
1 parent fef76bd commit 3fa0fc0

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
clipboard-manager-js: patch
3+
---
4+
5+
Fix clipboard manager client side api not copying fallback alternative text when calling `writeHtml`.

plugins/clipboard-manager/api-iife.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ async function readImage(): Promise<Image> {
120120
*
121121
* @since 2.0.0
122122
*/
123-
async function writeHtml(html: string, altHtml?: string): Promise<void> {
123+
async function writeHtml(html: string, altText?: string): Promise<void> {
124124
await invoke('plugin:clipboard-manager|write_html', {
125125
html,
126-
altHtml
126+
altText
127127
})
128128
}
129129

0 commit comments

Comments
 (0)