diff --git a/public/init.html b/public/init.html index 945dd83..396df5a 100644 --- a/public/init.html +++ b/public/init.html @@ -150,87 +150,6 @@ } } -
Init Discuss
@@ -279,16 +198,10 @@ } submit.setAttribute('disabled', '') - data = await ajax({ - url: location.href, - method: 'post', - data: { - type: 'INIT', - mail, - username, - password - } - }) + const body = JSON.stringify({ type: 'INIT', mail, username, password }) + const response = await fetch(location.href, { method: 'post', body }) + data = await response.json() + msg.style.display = 'block' msg.innerText = data.msg