From 4588f11613c19190a856c0a1785dac6d1ef8c777 Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 7 Oct 2021 23:12:00 +0200 Subject: [PATCH] deflicker lightmode --- copyparty/web/browser.html | 2 ++ 1 file changed, 2 insertions(+) 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");