diff --git a/cmd/server/internal/public/index.html b/cmd/server/internal/public/index.html index 840a5b3..c92f1a9 100644 --- a/cmd/server/internal/public/index.html +++ b/cmd/server/internal/public/index.html @@ -53,8 +53,11 @@ ` if (document.getElementById("question-text").value != g_live_question.Text) { - document.getElementById("question-text").innerHTML = `

${g_live_question.Text}

`; document.getElementById("question-text").value = g_live_question.Text; + document.getElementById("question-text").innerHTML = `

${g_live_question.Text}

`; + } + if (document.getElementById("question-options").value != options) { + document.getElementById("question-options").value = options; document.getElementById("question-options").innerHTML = options; } } else { diff --git a/cmd/server/main.go b/cmd/server/main.go index ed0aa3f..cfac2fe 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -109,7 +109,7 @@ func runHTTP(ctx context.Context, cfg Config) error { <-ctx.Done() server.Close() }() - log.Println("listening on", cfg.Addr) + log.Println("listening on", cfg.Addr, "w", string(cfg.fsDB)) if err := server.ListenAndServe(); err != nil && ctx.Err() == nil { return err }