diff options
Diffstat (limited to 'client/simple/src/js/main/autocomplete.ts')
| -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(); |
