fix(clipboard): use navigator.clipboard.writeText as primary, arboard as fallback — fixes silent failure on Linux/XWayland

This commit is contained in:
2026-04-19 10:21:10 +01:00
parent d959a82a4b
commit b479a368e7
4 changed files with 20 additions and 5 deletions

View File

@@ -118,7 +118,11 @@
}
function copyAll() {
if (fileTranscript) invoke("copy_to_clipboard", { text: fileTranscript }).catch(() => {});
if (fileTranscript) {
navigator.clipboard.writeText(fileTranscript).catch(() => {
invoke("copy_to_clipboard", { text: fileTranscript }).catch(() => {});
});
}
}
function handleExport(format) {