mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-12-26 20:04:31 +08:00
Login theme bugfix.
This commit is contained in:
@@ -19,7 +19,9 @@
|
||||
<div id="root"></div>
|
||||
<script>
|
||||
(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>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user