From a815c291074b454d4bb1a31067cd363c84df1360 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Fri, 12 Dec 2025 19:21:22 +0100 Subject: refactor(frontend): remove JS files --- backend/data.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'backend/data.go') diff --git a/backend/data.go b/backend/data.go index 1b40e73..5bc5391 100644 --- a/backend/data.go +++ b/backend/data.go @@ -11,7 +11,6 @@ import ( "log/slog" "math/rand" "net/http" - "net/url" "regexp" "strings" txt "text/template" @@ -103,11 +102,6 @@ func (d *data) handleGeneric(w http.ResponseWriter, r *http.Request, name string panic(err) } exec := "base.html" - if r.Context().Value(isUpdateKey).(bool) { - exec = "body" - w.Header().Set("Updated-Title", url.QueryEscape(d.Title())) - w.Header().Set("Updated-Quote", url.QueryEscape(d.Quote)) - } if custom == nil { err = t.ExecuteTemplate(w, exec, d) } else { -- cgit v1.2.3