From 088e731adefecd8539fd257a3cfa92f3be2342c5 Mon Sep 17 00:00:00 2001 From: Kenny2github Date: Mon, 20 Dec 2021 03:27:12 +0000 Subject: [PATCH] dark theme breaks harder than expected don't enable it via media yet --- ScratchWikiSkinTemplate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ScratchWikiSkinTemplate.php b/ScratchWikiSkinTemplate.php index 3bbb384..a471957 100644 --- a/ScratchWikiSkinTemplate.php +++ b/ScratchWikiSkinTemplate.php @@ -270,14 +270,14 @@ function mod(el) { return el; } var body = mod(document.body); -if ( +/* if ( window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches && !body.hasclass('dark-theme') ) { body.addclass('dark-theme'); document.querySelector('div#feet').style.display = ''; -} +} */ (function () { let selected = document.querySelectorAll('#navigation a.dropdown-toggle'); for (var i = 0; i < selected.length; i++) {