Nicer handling of dead tabs, introduced version.

This commit is contained in:
Magnus Åhall 2025-11-10 10:02:34 +01:00
parent 0c0811a5fc
commit 5a15824ed5
3 changed files with 26 additions and 11 deletions

View file

@ -16,6 +16,8 @@ import (
"strings"
)
const VERSION = "v1"
var (
flagVerbose bool
flagWsURL string
@ -70,7 +72,11 @@ func pageIndex(w http.ResponseWriter, r *http.Request) { // {{{
return
}
tmpl.Execute(w, sites)
data := map[string]any{
"Sites": sites,
"VERSION": VERSION,
}
tmpl.Execute(w, data)
} // }}}
func pageCSS(w http.ResponseWriter, r *http.Request) { // {{{
w.Header().Add("Content-Type", "text/css")