Skip to content

Commit

Permalink
fix: use useHead from #imports
Browse files Browse the repository at this point in the history
Revert "fix: prefer #app useHead (#271)"

This reverts commit eecd223.
  • Loading branch information
danielroe committed Aug 27, 2023
1 parent 9ce9e2d commit 171e351
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/runtime/plugins/script.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { TurnstileRenderOptions } from '../types'
import { defineNuxtPlugin, useRuntimeConfig, ref, isVue2, watch } from '#imports'
import { useHead } from '#app'
import { defineNuxtPlugin, useRuntimeConfig, useHead, ref, isVue2, watch } from '#imports'

const configure = [
'window.loadTurnstile = new Promise(resolve => {',
Expand Down

0 comments on commit 171e351

Please sign in to comment.