From 89737edbd6122b1894c26d07c8bcdbad04e38695 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Mon, 25 Nov 2024 22:02:51 -0600 Subject: [PATCH] Don't show suggest if message changed --- static/index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/index.html b/static/index.html index 446a21d..9a7035b 100644 --- a/static/index.html +++ b/static/index.html @@ -143,6 +143,10 @@ async function suggestNow() { return; } + if (document.getElementById('message').value != m) { + return; + } + document.getElementById('suggest-msg').innerText = await resp.text(); document.getElementById('suggest').show(); }