Skip to content

Commit

Permalink
Merge pull request #625 from addeeandra/fix/light-mode-flickering
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro authored Sep 19, 2024
2 parents 8b04529 + e460089 commit c706167
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/views/layouts/app.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<script>
const currentTheme = localStorage.getItem('theme') || "dark"
document.documentElement.classList.add(currentTheme)
</script>
@include('layouts.components.head')
</head>
<body
Expand Down

0 comments on commit c706167

Please sign in to comment.