update
This commit is contained in:
@@ -6,10 +6,10 @@
|
||||
<title>Planer2</title>
|
||||
<script>
|
||||
(function () {
|
||||
var stored = localStorage.getItem('darkMode')
|
||||
var dark = stored === null
|
||||
? window.matchMedia('(prefers-color-scheme: dark)').matches
|
||||
: stored === 'true'
|
||||
var modus = localStorage.getItem('darkModus')
|
||||
var dark = modus === 'hell' || modus === 'dunkel'
|
||||
? modus === 'dunkel'
|
||||
: window.matchMedia('(prefers-color-scheme: dark)').matches
|
||||
if (dark) document.documentElement.classList.add('dark')
|
||||
})()
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user