aboutsummaryrefslogtreecommitdiff
path: root/frontend/query.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/query.ts')
-rw-r--r--frontend/query.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/query.ts b/frontend/query.ts
index a608c57..7fa83e3 100644
--- a/frontend/query.ts
+++ b/frontend/query.ts
@@ -39,5 +39,5 @@ export async function process_query(default_engine: string, query: string) {
}
async function search_url(engine: string, query: string) {
- return (await bangs)[engine]?.url.replace("{{{s}}}", encodeURIComponent(query).replaceAll("%20", "+"))
+ return (await bangs)[engine.toLowerCase()]?.url.replace("{{{s}}}", encodeURIComponent(query).replaceAll("%20", "+"))
}