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 37f62f4..e8d41b1 100644
--- a/frontend/query.ts
+++ b/frontend/query.ts
@@ -34,7 +34,7 @@ export async function process_query(default_engine: string, query: string) {
if (!url) return status("error", "Invalid search engine.")
status("success", `Forwarding to ${url}`)
- setTimeout(() => document.location.href = url!, 0)
+ document.location.replace(url)
}
async function search_url(engine: string, query: string) {