Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
kalix127 committed Jan 16, 2025
1 parent 12176b7 commit 72291bb
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions components/content/CodeSnippet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,9 @@ if (file) {
}
} else if (url) {
try {
const { data } = await useFetch(url, {
key: url,
transform: response => response as string,
});
if (data.value) {
loadedCode.value = data.value;
const data = await $fetch(url);
if (data) {
loadedCode.value = data as string;
}
} catch {}
}
Expand Down

0 comments on commit 72291bb

Please sign in to comment.