Skip to content

Commit 3908e96

Browse files
committed
fix: move hcaptcha to generic thing
1 parent d0cbb8e commit 3908e96

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

nuxt.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const config: NuxtConfig = {
9292
{ rel: `manifest`, href: `/site.webmanifest` },
9393
{ rel: `mask-icon`, href: `/safari-pinned-tab.svg`, color: `#4a4a4a` },
9494
],
95-
script: [],
95+
script: [{ src: `https://js.hcaptcha.com/1/api.js?explicit=true`, defer: true, async: true }],
9696
},
9797
loadingIndicator: {
9898
name: `chasing-dots`,

src/components/register/SelectID.vue

-5
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,6 @@ export default Vue.extend({
6767
captchaID: null,
6868
}
6969
},
70-
head() {
71-
return {
72-
script: [{ src: `https://js.hcaptcha.com/1/api.js?explicit=true`, defer: true, async: true }],
73-
}
74-
},
7570
async mounted() {
7671
const doc = document.getElementById(`hcaptcha`)
7772
if (!doc) {

0 commit comments

Comments
 (0)