From 3084cf7129dcb07513163eae259d43865a18bc42 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 26 Jan 2021 16:00:24 +0100 Subject: [PATCH] Dark background in boot2 --- www/common/boot2.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/common/boot2.js b/www/common/boot2.js index 8ed428cbb..24a853251 100644 --- a/www/common/boot2.js +++ b/www/common/boot2.js @@ -22,6 +22,11 @@ try { localStorage[key+'_default'] = os; } } + if (window.CryptPad_theme === 'dark') { + var s = document.createElement('style'); + s.innerHTML = 'body { background: black; }'; + document.body.appendChild(s); + } //localStorage[key] = theme; // If the wrong theme is built, flush it /* XXX flush cache when change