parent
44a80255bb
commit
4663960d9d
|
|
@ -53,8 +53,11 @@
|
||||||
<label for="${i}">${i}</label>
|
<label for="${i}">${i}</label>
|
||||||
</div>`
|
</div>`
|
||||||
if (document.getElementById("question-text").value != g_live_question.Text) {
|
if (document.getElementById("question-text").value != g_live_question.Text) {
|
||||||
document.getElementById("question-text").innerHTML = `<h1>${g_live_question.Text}</h1>`;
|
|
||||||
document.getElementById("question-text").value = g_live_question.Text;
|
document.getElementById("question-text").value = g_live_question.Text;
|
||||||
|
document.getElementById("question-text").innerHTML = `<h1>${g_live_question.Text}</h1>`;
|
||||||
|
}
|
||||||
|
if (document.getElementById("question-options").value != options) {
|
||||||
|
document.getElementById("question-options").value = options;
|
||||||
document.getElementById("question-options").innerHTML = options;
|
document.getElementById("question-options").innerHTML = options;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@ func runHTTP(ctx context.Context, cfg Config) error {
|
||||||
<-ctx.Done()
|
<-ctx.Done()
|
||||||
server.Close()
|
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 {
|
if err := server.ListenAndServe(); err != nil && ctx.Err() == nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue