Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: syntax error in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
hanspagel committed Dec 13, 2023
1 parent e605819 commit be4a62c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demo/src/components/CodeExample.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const highlightedRequest = ref('')
onMounted(async () => {
// Code
code.value = snippetz().print('node', props.client, props.request) ?? ''
code.value = snippetz().print(props.target, props.client, props.request) ?? ''
// Syntax highlighting for the code
const shiki = await getHighlighter({
Expand All @@ -27,7 +27,7 @@ onMounted(async () => {
highlightedCode.value = shiki.codeToHtml(code.value, { lang: 'javascript', theme: 'vitesse-dark' })
highlightedRequest.value = shiki.codeToHtml(`import { snippetz } from '@scalar/snippetz'
const snippet = snippetz().print('node', ${props.client}, ${objectToString(props.request)}`, {
const snippet = snippetz().print('${props.target}', '${props.client}', ${objectToString(props.request)})`, {
lang: 'javascript',
theme: 'vitesse-dark'
})
Expand Down

0 comments on commit be4a62c

Please sign in to comment.