Skip to content

Commit

Permalink
feat: add favicon (monicahq/chandler#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
djaiss authored Sep 14, 2022
1 parent ef2496c commit 4b32260
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
11 changes: 11 additions & 0 deletions public/img/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 7 additions & 5 deletions resources/views/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

<title inertia>{{ config('app.name', 'Laravel') }}</title>

<link rel="shortcut icon" href="img/favicon.svg">

<!-- Scripts -->
@if (app()->bound('sentry') && config('sentry.dsn') !== null)
<script type="text/javascript">
Expand All @@ -21,11 +23,11 @@
@endif

<script type="text/javascript">
if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
document.documentElement.classList.add('dark')
} else {
document.documentElement.classList.remove('dark')
}
if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
document.documentElement.classList.add('dark')
} else {
document.documentElement.classList.remove('dark')
}
</script>

@routes
Expand Down

0 comments on commit 4b32260

Please sign in to comment.