Skip to content

Commit

Permalink
fix(vue): head injection (#2929)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmaxlogiudice authored Dec 18, 2024
1 parent 2c99bb8 commit 7302a84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/runtime/vue/plugins/head.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { createHead } from '@unhead/vue'
import { createHead, setHeadInjectionHandler } from '@unhead/vue'
import type { Plugin } from 'vue'

export default {
install(app) {
app.use(createHead())
install() {
setHeadInjectionHandler(() => createHead())
}
} satisfies Plugin

0 comments on commit 7302a84

Please sign in to comment.