aboutsummaryrefslogtreecommitdiff
path: root/backend/data.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-12-12 19:21:22 +0100
committerAnhgelus Morhtuuzh <william@herges.fr>2025-12-12 19:21:22 +0100
commita815c291074b454d4bb1a31067cd363c84df1360 (patch)
treeb04e3e048fdd15caff2c9127d7598b04b47178a7 /backend/data.go
parentd56090d43c925dbbd22a3e0c3f6d541674a09697 (diff)
refactor(frontend): remove JS files
Diffstat (limited to 'backend/data.go')
-rw-r--r--backend/data.go6
1 files changed, 0 insertions, 6 deletions
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 {