Try moving darkmode up

This commit is contained in:
cuom1999 2022-11-13 20:43:51 -06:00
parent c3d86ae28a
commit 6bd15ded9c
2 changed files with 6 additions and 5 deletions

View file

@ -421,8 +421,4 @@ $(function() {
DarkReader.enable();
}
})
});
if (localStorage.getItem("darkmode") === "true") {
DarkReader.enable();
}
});

View file

@ -74,6 +74,11 @@
<link rel="stylesheet" type="text/css" href="{{ static('markdown.css') }}">
<script src="https://unpkg.com/@popperjs/core@2"></script>
<script src="https://cdn.jsdelivr.net/npm/darkreader@4.9.58/darkreader.min.js"></script>
<script type="text/javascript">
if (localStorage.getItem("darkmode") === "true") {
DarkReader.enable();
}
</script>
{% compress js %}
<script>{{ inlinei18n(LANGUAGE_CODE)|safe }}</script>
{% if INLINE_JQUERY %}