diff --git a/src/register.html b/src/register.html index cfd3079..9fcead2 100644 --- a/src/register.html +++ b/src/register.html @@ -9,11 +9,11 @@

Sign-up

-
+
-
+
- +

@@ -24,11 +24,11 @@ const formEl = document.getElementById("register"); formEl.addEventListener('submit', (listener) => formHandler(listener)); - function formHandler(listener){ + function formHandler(listener) { listener.preventDefault(); const formData = new FormData(formEl); const pass = formData.get("pass"); - if(pass === formData.get("confirm")) { + if (pass === formData.get("confirm")) { const url = new URL(window.location.href); const urlParam = new URLSearchParams(url.search); const auth = urlParam.get("auth");