mirror of
https://github.com/PaddiM8/kalker.git
synced 2024-12-14 10:30:43 +01:00
web: Don't submit empty input
This commit is contained in:
parent
224c320a3e
commit
9f902b5ab1
@ -139,6 +139,10 @@
|
|||||||
const input = inputElement.value;
|
const input = inputElement.value;
|
||||||
let output: string;
|
let output: string;
|
||||||
|
|
||||||
|
if (input == "") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (input.trim() == "help") {
|
if (input.trim() == "help") {
|
||||||
output = `<a style="color: ${linkcolor}"
|
output = `<a style="color: ${linkcolor}"
|
||||||
href="https://kalker.xyz/#usage"
|
href="https://kalker.xyz/#usage"
|
||||||
|
Loading…
Reference in New Issue
Block a user