frontend/src/routes/+layout.server.ts
MuslemRahimi b041a54d68 bugfixing
2025-03-20 21:20:09 +01:00

13 lines
280 B
TypeScript

export const load = ({ locals, cookies }) => {
const { user, isUSRegion, wsURL, themeMode } = locals;
return {
user: user || undefined,
isUSRegion,
cookieConsent: cookies.get("cookie-consent"),
wsURL,
themeMode // Add theme mode to returned data
};
};