Skip to content

Commit

Permalink
fix: move hcaptcha to generic thing
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispanag committed Jul 21, 2022
1 parent d0cbb8e commit 3908e96
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down
5 changes: 0 additions & 5 deletions src/components/register/SelectID.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3908e96

Please sign in to comment.