summaryrefslogtreecommitdiff
path: root/internal/web/templates
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-07-23 21:35:52 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-07-23 21:35:52 +0200
commitbfa8df7b36ccbd44703e0705d51a2ed553a23164 (patch)
tree5b760ff95f6e9498dec77f813eddd5538c0b1177 /internal/web/templates
parentba3c501ec516e1cc58870708a83874b10fc4584a (diff)
downloadlectio-bfa8df7b36ccbd44703e0705d51a2ed553a23164.tar.gz
lectio-bfa8df7b36ccbd44703e0705d51a2ed553a23164.zip
web: no-store responses + robust theme-link swap (fixes stale-cache 'theme switch stopped working')
Diffstat (limited to 'internal/web/templates')
-rw-r--r--internal/web/templates/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/web/templates/index.html b/internal/web/templates/index.html
index cc56a09..a1247e6 100644
--- a/internal/web/templates/index.html
+++ b/internal/web/templates/index.html
@@ -61,7 +61,7 @@
<label class="theme-picker">motyw
<select id="theme-select"
- onchange="document.getElementById('theme').href='/theme.css?name='+encodeURIComponent(this.value)">
+ onchange="var o=document.getElementById('theme'),n=o.cloneNode(false);n.setAttribute('href','/theme.css?name='+encodeURIComponent(this.value));o.replaceWith(n);">
{{range .ThemeOpts}}
<option value="{{.Name}}" {{if .Selected}}selected{{end}}>{{.Name}}</option>
{{end}}