diff --git a/nuxt.config.ts b/nuxt.config.ts index 5747ec4f..0f286b16 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -92,7 +92,7 @@ const config: NuxtConfig = { { rel: `manifest`, href: `/site.webmanifest` }, { rel: `mask-icon`, href: `/safari-pinned-tab.svg`, color: `#4a4a4a` }, ], - script: [], + script: [{ src: `https://js.hcaptcha.com/1/api.js?explicit=true`, defer: true, async: true }], }, loadingIndicator: { name: `chasing-dots`, diff --git a/src/components/register/SelectID.vue b/src/components/register/SelectID.vue index 8fbd5aff..6acf53a5 100644 --- a/src/components/register/SelectID.vue +++ b/src/components/register/SelectID.vue @@ -67,11 +67,6 @@ export default Vue.extend({ captchaID: null, } }, - head() { - return { - script: [{ src: `https://js.hcaptcha.com/1/api.js?explicit=true`, defer: true, async: true }], - } - }, async mounted() { const doc = document.getElementById(`hcaptcha`) if (!doc) {