diff options
| author | vojkovic <git@vojk.au> | 2026-08-02 13:29:07 +0000 |
|---|---|---|
| committer | Brock Vojkovic <brock@vojk.au> | 2026-08-03 19:51:02 +0800 |
| commit | d81810d2a7b22825ec541bc3ecd0215fcc55b25d (patch) | |
| tree | 02a45d34438ea0660396cf6ed8a9a57c9e4dac29 /client/simple/src/js | |
| parent | 8892414dc38dd57728b7f62f33152ea80e3b305f (diff) | |
[fix] autocomplete: drop POST method
Diffstat (limited to 'client/simple/src/js')
| -rw-r--r-- | client/simple/src/js/main/autocomplete.ts | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/client/simple/src/js/main/autocomplete.ts b/client/simple/src/js/main/autocomplete.ts index aea67c75d..15eb8304b 100644 --- a/client/simple/src/js/main/autocomplete.ts +++ b/client/simple/src/js/main/autocomplete.ts @@ -5,13 +5,7 @@ import { assertElement } from "../util/assertElement.ts"; const fetchResults = async (qInput: HTMLInputElement, query: string): Promise<void> => { try { - let res: Response; - - if (settings.method === "GET") { - res = await http("GET", `./autocompleter?q=${query}`); - } else { - res = await http("POST", "./autocompleter", { body: new URLSearchParams({ q: query }) }); - } + const res = await http("GET", `./autocompleter?q=${query}`); const results = await res.json(); |
