aboutsummaryrefslogtreecommitdiff
path: root/frontend/search.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-08-14 20:20:47 +0200
committermetamuffin <metamuffin@disroot.org>2023-08-14 20:20:47 +0200
commit1951cc978eb0a4d983e2aa6122b3afe0e32ad54f (patch)
tree3bea14efba5371e1c5f313ed86b252973b0384a5 /frontend/search.ts
parent9695158014c803c192f30dbd967d2200edce0250 (diff)
downloadfastbangs-1951cc978eb0a4d983e2aa6122b3afe0e32ad54f.tar
fastbangs-1951cc978eb0a4d983e2aa6122b3afe0e32ad54f.tar.bz2
fastbangs-1951cc978eb0a4d983e2aa6122b3afe0e32ad54f.tar.zst
fix apply_opts for <link>
Diffstat (limited to 'frontend/search.ts')
-rw-r--r--frontend/search.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/frontend/search.ts b/frontend/search.ts
index 3e510cb..bca2fc0 100644
--- a/frontend/search.ts
+++ b/frontend/search.ts
@@ -22,7 +22,7 @@ export function section_search(engine: string) {
const heading = e("h1", {}, engine)
bangs.then(bangs => heading.textContent = bangs[engine]?.name ?? engine)
- const input = e("input", {type: "text"})
+ const input = e("input", { type: "text" })
input.addEventListener("keydown", ev => {
if (ev.code == "Enter") process_query(engine, input.value ?? "")
})
@@ -51,6 +51,7 @@ function link_engine(engine: string) {
id: "search-link",
type: "application/opensearchdescription+xml",
href: `/search.xml?default=${encodeURIComponent(engine)}`,
- title: `Fastbangs (default engine: ${engine})`})
+ title: `Fastbangs (default engine: ${engine})`
+ })
document.head.append(link)
}