web: Don't submit empty input

This commit is contained in:
bakk 2022-01-16 22:39:17 +01:00 committed by PaddiM8
parent 4521a2e05a
commit 89df281366

View File

@ -139,6 +139,10 @@
const input = inputElement.value;
let output: string;
if (input == "") {
return;
}
if (input.trim() == "help") {
output = `<a style="color: ${linkcolor}"
href="https://kalker.xyz/#usage"