Skip to content

Commit

Permalink
fix: rename useMeta to useHead (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
Intevel committed Apr 20, 2022
1 parent 4a030f0 commit 63d86ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/plugin.server.ts
Expand Up @@ -2,7 +2,7 @@ import { defineNuxtPlugin, isVue2, isVue3 } from '#app'
import { reactive } from 'vue'

import type { ColorModeInstance } from './types'
import { useMeta, useState, useRouter } from '#imports'
import { useHead, useState, useRouter } from '#imports'
import { preference, hid, script } from '#color-mode-options'

const addScript = (head) => {
Expand Down Expand Up @@ -44,7 +44,7 @@ export default defineNuxtPlugin((nuxtApp) => {
}

if (isVue3) {
useMeta({
useHead({
htmlAttrs,
script: [{ children: script }]
})
Expand Down

0 comments on commit 63d86ab

Please sign in to comment.