Skip to content

Commit

Permalink
dark theme breaks harder than expected
Browse files Browse the repository at this point in the history
don't enable it via media yet
  • Loading branch information
Kenny2github committed Dec 20, 2021
1 parent 36c6d9e commit 088e731
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ScratchWikiSkinTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 088e731

Please sign in to comment.