fix exception in js-send (logic.js)

This commit is contained in:
Mike Schwörer 2023-06-18 00:25:10 +02:00
parent bbc9a79996
commit a9809d90cb
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF

View File

@ -17,7 +17,6 @@ function send()
uid.classList.remove('input-invalid');
key.classList.remove('input-invalid');
msg.classList.remove('input-invalid');
cnt.classList.remove('input-invalid');
pio.classList.remove('input-invalid');
@ -30,7 +29,7 @@ function send()
if (cha.value !== '') data.append('channel', cha.value);
let xhr = new XMLHttpRequest();
xhr.open('POST', '/send.php', true);
xhr.open('POST', '/', true);
xhr.onreadystatechange = function ()
{
if (xhr.readyState !== 4) return;