From 32e3f3d38cb15484aee05068467fa779e1993c41 Mon Sep 17 00:00:00 2001 From: jx163 Date: Tue, 2 Sep 2025 13:03:08 +1200 Subject: [PATCH] Add launchApp support for target:clipboard to copy text to clipboard --- src/views/Workspace.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/views/Workspace.vue b/src/views/Workspace.vue index 01b15327..fb1813db 100644 --- a/src/views/Workspace.vue +++ b/src/views/Workspace.vue @@ -46,6 +46,16 @@ export default { }, methods: { launchApp(options) { + const { url, target } = options; + if (target === 'clipboard') { + if (navigator.clipboard) { + navigator.clipboard.writeText(url); + this.$toasted.show('Copied to clipboard!'); + } else { + this.$toasted.show('Clipboard API not supported'); + } + return; + } if (options.target === 'newtab') { window.open(options.url, '_blank'); } else {