diff --git a/apps/frontend/src/components/ui/HCaptcha.vue b/apps/frontend/src/components/ui/HCaptcha.vue index 3421afa0..bacc2516 100644 --- a/apps/frontend/src/components/ui/HCaptcha.vue +++ b/apps/frontend/src/components/ui/HCaptcha.vue @@ -12,17 +12,21 @@ function hCaptchaReady() { } onMounted(() => { - window.hCaptchaReady = hCaptchaReady; + if (window.hcaptcha) { + hCaptchaReady(); + } else { + window.hCaptchaReady = hCaptchaReady; - useHead({ - script: [ - { - src: "https://js.hcaptcha.com/1/api.js?render=explicit&onload=hCaptchaReady", - async: true, - defer: true, - }, - ], - }); + useHead({ + script: [ + { + src: "https://js.hcaptcha.com/1/api.js?render=explicit&onload=hCaptchaReady", + async: true, + defer: true, + }, + ], + }); + } }); defineExpose({ diff --git a/apps/frontend/src/components/ui/servers/BackupCreateModal.vue b/apps/frontend/src/components/ui/servers/BackupCreateModal.vue index e0b67486..fc475325 100644 --- a/apps/frontend/src/components/ui/servers/BackupCreateModal.vue +++ b/apps/frontend/src/components/ui/servers/BackupCreateModal.vue @@ -17,6 +17,9 @@ Backup #{{ newBackupAmount }} +