1
0
Fork 0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2026-03-02 10:41:36 +00:00

Keep search terms in top bar

This commit is contained in:
Cadence Ember 2020-08-25 01:49:15 +12:00
parent 2cc6a2912a
commit 6180f858a7
2 changed files with 3 additions and 3 deletions

View file

@ -8,7 +8,7 @@ module.exports = [
const fetchURL = new URL("http://localhost:3000/api/v1/search")
fetchURL.searchParams.set("q", query)
const results = await fetch(fetchURL.toString()).then(res => res.json())
return render(200, "pug/search.pug", {results})
return render(200, "pug/search.pug", {query, results})
}
}
]