mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-13 13:47:38 +02:00
web: add notch easter egg & optimize for landscape
it took way too much time to optimize the damn logo sticker under notch for all devices & zoom states also improved device lib api
This commit is contained in:
@ -9,14 +9,13 @@ import type { Load } from '@sveltejs/kit';
|
||||
import languages from '$i18n/languages.json';
|
||||
import { loadTranslations, defaultLocale } from '$lib/i18n/translations';
|
||||
|
||||
import device from '$lib/device.js';
|
||||
|
||||
export const load: Load = async ({ url }) => {
|
||||
const { pathname } = url;
|
||||
|
||||
let preferredLocale = defaultLocale;
|
||||
|
||||
if (browser) {
|
||||
const device = (await import('$lib/device')).device;
|
||||
const settings = get((await import('$lib/settings')).default);
|
||||
const deviceLanguage = device.preferredLocale;
|
||||
const settingsLanguage = settings.appearance.language;
|
||||
|
Reference in New Issue
Block a user