Fixed register/login... dark mode

Removed check for browser type, now applies dark mode regardless of browser type if dark mode cookie is detected
This commit is contained in:
Julian Prieber 2022-02-27 19:43:58 +01:00 committed by GitHub
parent ec88a74889
commit 9a3348ffd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@
</script> </script>
<?php // loads dark mode CSS if dark mode detected <?php // loads dark mode CSS if dark mode detected
$color_scheme = isset($_COOKIE["color_scheme"]) ? $_COOKIE["color_scheme"] : false; ?> $color_scheme = isset($_COOKIE["color_scheme"]) ? $_COOKIE["color_scheme"] : false; ?>
@if(strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome' !== false) and $color_scheme == 'dark') @if($color_scheme == 'dark')
<link rel="stylesheet" href="{{ asset('css/app-dark.css') }}"> <link rel="stylesheet" href="{{ asset('css/app-dark.css') }}">
@endif @endif
<!-- end dark mode detection --> <!-- end dark mode detection -->