Skip to content

Commit

Permalink
fix: theme
Browse files Browse the repository at this point in the history
  • Loading branch information
ronsen committed Nov 22, 2024
1 parent 646e243 commit 8de6d19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/routes/+layout.server.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { LayoutServerLoad } from "./$types";

export const load = (async ({ locals, cookies }) => {
const theme = cookies.get('theme');
const theme = cookies.get('theme') ?? 'light';

return {
user: locals.user,
theme
};
}) satisfies LayoutServerLoad;
}) satisfies LayoutServerLoad;

0 comments on commit 8de6d19

Please sign in to comment.