diff --git a/copyparty/web/browser.html b/copyparty/web/browser.html index c2b9fbdd..b3cb2c3f 100644 --- a/copyparty/web/browser.html +++ b/copyparty/web/browser.html @@ -135,6 +135,8 @@ have_unpost = {{ have_unpost|tojson }}, have_zip = {{ have_zip|tojson }}, readme = {{ readme|tojson }}; + + document.documentElement.setAttribute("class", localStorage.lightmode == 1 ? "light" : "dark");