Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 79a54fdfc2 | |||
| e73c078463 |
@@ -22,6 +22,9 @@ function setMeta(attr: 'name' | 'property', key: string, content: string) {
|
||||
|
||||
function syncLanguageUrl(lang: SeoLang) {
|
||||
const url = new URL(window.location.href)
|
||||
const currentLng = url.searchParams.get('lng')
|
||||
if (currentLng && normalizeSeoLang(currentLng) === lang) return
|
||||
|
||||
url.searchParams.set('lng', lang)
|
||||
const next = `${url.pathname}${url.search}${url.hash}`
|
||||
window.history.replaceState({}, '', next)
|
||||
|
||||
@@ -51,7 +51,7 @@ export default defineConfig({
|
||||
short_name: 'Daagbok',
|
||||
lang: 'de',
|
||||
description:
|
||||
'Digitales Yacht-Logbuch — E2E-verschlüsselt, offline-fähig. Digital yacht logbook — E2E encrypted, offline-capable PWA.',
|
||||
'Digitales Yacht-Logbuch — E2E-verschlüsselt, offline-fähig.',
|
||||
theme_color: '#1e293b',
|
||||
background_color: '#0f172a',
|
||||
display: 'standalone',
|
||||
|
||||
Reference in New Issue
Block a user