From 2df368d49228ed4529a06501fdc5c2ce8eb631d5 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 22 Sep 2020 15:25:24 +0300 Subject: show dictionary popup before request completes --- backend.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'backend.php') diff --git a/backend.php b/backend.php index e245fb2..6318853 100644 --- a/backend.php +++ b/backend.php @@ -290,6 +290,8 @@ array_push($result, "No results for: $orig_word"); print json_encode(["result" => $result]); + } else { + print json_encode(["result" => ["Dictionary lookups are disabled."]]); } break; -- cgit v1.2.3