Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Mar 27, 2024
2 parents 5c9fecf + 0fad027 commit a4b7f72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/components/docs/DocsTocLinks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const { activeHeadings, updateHeadings } = useScrollspy()
watch(() => route.path, () => {
setTimeout(() => {
if (process.client) {
if (import.meta.client) {
updateHeadings([
...document.querySelectorAll('h2'),
...document.querySelectorAll('h3'),
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/nuxt/composables/useBreadcrumbItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export function useBreadcrumbItems(options: BreadcrumbProps = {}) {
})

const schemaOrgEnabled = typeof options.schemaOrg === 'undefined' ? true : options.schemaOrg
if (process.server && schemaOrgEnabled) {
if (import.meta.server && schemaOrgEnabled) {
useSchemaOrg([
defineBreadcrumb(computed(() => {
return {
Expand Down

0 comments on commit a4b7f72

Please sign in to comment.