diff --git a/src/vue-pages/register.vue b/src/vue-pages/register.vue index 5953ae09..ae78fda8 100644 --- a/src/vue-pages/register.vue +++ b/src/vue-pages/register.vue @@ -3,7 +3,6 @@ import { openMessenger } from '@/services/bento' import { type Locales } from '@/services/locale' import { getRemoteConfig, useSupabase } from '@/services/supabase' import translations from '@/services/translations' -import { navigate } from 'astro:transitions/client' import { onMounted, ref } from 'vue' import { toast } from 'vue-sonner' @@ -13,33 +12,11 @@ const CLOUDFLARE_TURNSTILE_SITE_KEY = import.meta.env.CLOUDFLARE_TURNSTILE_SITE_ const isLoading = ref(false) const enableCaptcha = ref(!!CLOUDFLARE_TURNSTILE_SITE_KEY) -const hasCaptcha = ref(null) const email = ref('') const firstName = ref('') const lastName = ref('') const password = ref('') -onMounted(() => { - let i = 0 - - function checkCaptcha() { - if (i > 500) { - hasCaptcha.value = false - return - } - i++ - - if (!!(window as any).turnstile) { - hasCaptcha.value = true - return - } - - setTimeout(checkCaptcha, 10) - } - - checkCaptcha() -}) - function getCaptchaId() { if (!(window as any).turnstile) { return undefined @@ -182,18 +159,10 @@ const handleSubmit = async () => {
-
- {{ translations['turn_off_adblock'][props.locale] }} -
- - - -