summaryrefslogtreecommitdiff
path: root/src/components/SmartClipboardButton.tsx
diff options
context:
space:
mode:
authorJanleyx <242423638+Janleyx@users.noreply.github.com>2026-07-18 10:20:20 -0400
committerJanleyx <242423638+Janleyx@users.noreply.github.com>2026-07-18 10:20:20 -0400
commite205effa83dbbcb9c13f3f11a493a525e989d7b6 (patch)
tree9b05626daceb691cdfa2e5306274f0297306d84c /src/components/SmartClipboardButton.tsx
parent722ac0cf338d659e2d0553431285fbfb0cd978b5 (diff)
downloaddecky-lsfg-vk-e205effa83dbbcb9c13f3f11a493a525e989d7b6.tar.gz
decky-lsfg-vk-e205effa83dbbcb9c13f3f11a493a525e989d7b6.zip
preserve Armada game launch wrapper
Diffstat (limited to 'src/components/SmartClipboardButton.tsx')
-rw-r--r--src/components/SmartClipboardButton.tsx9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/components/SmartClipboardButton.tsx b/src/components/SmartClipboardButton.tsx
index c90515a..7217e83 100644
--- a/src/components/SmartClipboardButton.tsx
+++ b/src/components/SmartClipboardButton.tsx
@@ -20,12 +20,11 @@ export function SmartClipboardButton() {
}, [showSuccess]);
const getLaunchOptionText = async (): Promise<string> => {
- try {
- const result = await getLaunchOption();
- return result.launch_option || "~/lsfg %command%";
- } catch (error) {
- return "~/lsfg %command%";
+ const result = await getLaunchOption();
+ if (!result.launch_option) {
+ throw new Error("Launch option is unavailable");
}
+ return result.launch_option;
};
const copyToClipboard = async () => {