Skip to content

Commit

Permalink
docs: fix document is not defined error
Browse files Browse the repository at this point in the history
  • Loading branch information
kermanx committed Jun 7, 2024
1 parent f44dc7c commit 6d80a84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/functions/[name].md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ const { params, title } = useData()
const fn = metadata.functions.find(fn => fn.name === params.value.name)

// A workaround for https://github.com/vuejs/vitepress/issues/3758
document.title = `${fn.name} | Reactive VSCode`
if(!import.meta.env.SSR)
document.title = `${fn.name} | Reactive VSCode`

const sourcePath = `packages/core/${fn.isComposable ? 'composables' : 'utils'}/${fn.name}.ts`
</script>
Expand Down

0 comments on commit 6d80a84

Please sign in to comment.