web: Don't submit empty input

This commit is contained in:
bakk 2022-01-16 22:39:17 +01:00
parent 224c320a3e
commit 9f902b5ab1

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"