fix(plugin): update copy button to use wrapper script path

This commit is contained in:
2026-06-28 20:56:40 +08:00
parent b98528fbaf
commit e3c3ed54c6
@@ -137,12 +137,12 @@ export default function MainPanel({
async function handleCopyLaunchOption() {
try {
await navigator.clipboard.writeText("mangohud %command%")
await navigator.clipboard.writeText("~/deckyvault-mangohud.sh %command%")
setCopiedLaunchOpt(true)
setTimeout(() => setCopiedLaunchOpt(false), 2000)
} catch {
const ta = document.createElement("textarea")
ta.value = "mangohud %command%"
ta.value = "~/deckyvault-mangohud.sh %command%"
document.body.appendChild(ta)
ta.select()
document.execCommand("copy")