fix(clipboard): use navigator.clipboard.writeText as primary, arboard as fallback — fixes silent failure on Linux/XWayland
This commit is contained in:
@@ -178,7 +178,9 @@
|
||||
}
|
||||
|
||||
function copyItem(item) {
|
||||
invoke("copy_to_clipboard", { text: item.text }).catch(() => {});
|
||||
navigator.clipboard.writeText(item.text).catch(() => {
|
||||
invoke("copy_to_clipboard", { text: item.text }).catch(() => {});
|
||||
});
|
||||
}
|
||||
|
||||
function removeItem(item) {
|
||||
|
||||
Reference in New Issue
Block a user