mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-12-02 10:02:12 +00:00
fix page title flickering
This commit is contained in:
@@ -55,6 +55,7 @@
|
||||
});
|
||||
|
||||
$effect(() => {
|
||||
if (i18n.isLoading) return;
|
||||
let title = `gpx.studio — ${i18n._(`metadata.${page.route.id?.replace('/[[language]]', '').split('/')[1] ?? 'home'}_title`)}`;
|
||||
if (page.params.guide) {
|
||||
document.title = `${title} | ${data.guideTitles[page.params.guide]}`;
|
||||
|
||||
Reference in New Issue
Block a user