Fix #168: compact corner notification pill for paste creation

This commit is contained in:
fen
2026-09-10 11:24:24 -05:00
parent bead90699d
commit aa4d017631
6 changed files with 29 additions and 16 deletions
+1 -1
View File
@@ -352,7 +352,7 @@ func (h *Handlers) HandlePasteView(w http.ResponseWriter, r *http.Request) {
token = c.Value
}
if justCreated && token != "" {
// one-time display of the deletion token via the created banner
// one-time display of the deletion token via sessionStorage (#143)
http.SetCookie(w, &http.Cookie{Name: "tok_" + row.ID, Value: token, Path: "/", MaxAge: 60, HttpOnly: true, SameSite: http.SameSiteLaxMode})
}
// Count the view for real page renders, deduped per-viewer within the