Skip to content

Commit

Permalink
fix: fix syntax error (#6957)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmod001 committed Oct 28, 2023
1 parent e326b90 commit 1b351e4
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions resources/views/app.blade.php
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" dir="{{ htmldir() }}">

<head>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
Expand All @@ -12,31 +12,33 @@

<!-- Scripts -->
@if (app()->bound('sentry') && config('sentry.dsn') !== null)
<script type="text/javascript">
const SentryConfig = {!! \json_encode([
'dsn' => config('sentry.dsn'),
'environment' => config('sentry.environment'),
'sendDefaultPii' => config('sentry.send_default_pii'),
'tracesSampleRate' => config('sentry.traces_sample_rate'),
]); !!}
</script>
<script type="text/javascript">
const SentryConfig = {!! json_encode([
'dsn' => config('sentry.dsn'),
'environment' => config('sentry.environment'),
'sendDefaultPii' => config('sentry.send_default_pii'),
'tracesSampleRate' => config('sentry.traces_sample_rate'),
]) !!};
</script>
@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
@vite('resources/js/app.js')
@inertiaHead
</head>
</head>

<body class="font-sans antialiased bg-white dark:bg-gray-800 dark:text-gray-300">
<body class="font-sans antialiased bg-white dark:bg-gray-800 dark:text-gray-300">
@inertia
</body>
</body>

</html>

0 comments on commit 1b351e4

Please sign in to comment.