You've already forked AstralRinth
forked from didirus/AstralRinth
Fix captcha not showing on create account page
This commit is contained in:
@@ -12,17 +12,21 @@ function hCaptchaReady() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
window.hCaptchaReady = hCaptchaReady;
|
if (window.hcaptcha) {
|
||||||
|
hCaptchaReady();
|
||||||
|
} else {
|
||||||
|
window.hCaptchaReady = hCaptchaReady;
|
||||||
|
|
||||||
useHead({
|
useHead({
|
||||||
script: [
|
script: [
|
||||||
{
|
{
|
||||||
src: "https://js.hcaptcha.com/1/api.js?render=explicit&onload=hCaptchaReady",
|
src: "https://js.hcaptcha.com/1/api.js?render=explicit&onload=hCaptchaReady",
|
||||||
async: true,
|
async: true,
|
||||||
defer: true,
|
defer: true,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
|
|||||||
Reference in New Issue
Block a user