Signed-off-by: Pranav C <pranavxc@gmail.com>
@ -15,11 +15,15 @@ export const useCopy = () => {
const { copy: _copy, isSupported } = useClipboard()
const copy = async (text: string) => {
try {
if (isSupported.value) {
await _copy(text)
} else {
copyFallback(text)
}
} catch (e) {
return { copy }