fix(plugin): update copy button to use wrapper script path
This commit is contained in:
@@ -137,12 +137,12 @@ export default function MainPanel({
|
|||||||
|
|
||||||
async function handleCopyLaunchOption() {
|
async function handleCopyLaunchOption() {
|
||||||
try {
|
try {
|
||||||
await navigator.clipboard.writeText("mangohud %command%")
|
await navigator.clipboard.writeText("~/deckyvault-mangohud.sh %command%")
|
||||||
setCopiedLaunchOpt(true)
|
setCopiedLaunchOpt(true)
|
||||||
setTimeout(() => setCopiedLaunchOpt(false), 2000)
|
setTimeout(() => setCopiedLaunchOpt(false), 2000)
|
||||||
} catch {
|
} catch {
|
||||||
const ta = document.createElement("textarea")
|
const ta = document.createElement("textarea")
|
||||||
ta.value = "mangohud %command%"
|
ta.value = "~/deckyvault-mangohud.sh %command%"
|
||||||
document.body.appendChild(ta)
|
document.body.appendChild(ta)
|
||||||
ta.select()
|
ta.select()
|
||||||
document.execCommand("copy")
|
document.execCommand("copy")
|
||||||
|
|||||||
Reference in New Issue
Block a user