mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-10-26 18:20:14 +03:00
Login theme bugfix.
This commit is contained in:
parent
4afd39b22f
commit
40ff26ea21
@ -19,7 +19,9 @@
|
|||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
<script>
|
<script>
|
||||||
(function() {
|
(function() {
|
||||||
document.body.dataset.theme = 'auto';
|
var prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
|
||||||
|
var currentTheme = prefersDark ? 'dark' : 'light';
|
||||||
|
document.body.dataset.theme = currentTheme;
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
Reference in New Issue
Block a user