aboutsummaryrefslogtreecommitdiff
path: root/internal/web/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'internal/web/templates/index.html')
-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}}