fix: use base path for favicon

This commit is contained in:
2026-09-13 13:16:02 +05:00
parent d0857c5d45
commit 44cfca92ce
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
<script lang="ts">
import { resolve } from "$app/paths";
import { page } from "$app/state";
import Footer from "$lib/components/layout/Footer.svelte";
import TopBar from "$lib/components/layout/TopBar.svelte";
@@ -44,7 +45,7 @@
</script>
<svelte:head>
<link rel="icon" href="/favicon.svg" />
<link rel="icon" href={`${resolve("/")}favicon.svg`} />
</svelte:head>
<main class="preview-root" data-theme={theme}>
+2 -2
View File
@@ -1,9 +1,9 @@
<script lang="ts">
import { resolve } from "$app/paths";
import { getTheme, initTheme, setTheme } from "$lib/theme.svelte";
import { LOCALES, type Locale } from "$lib/v1/i18n/dict";
import { getLocale, initLocale, setLocale } from "$lib/v1/i18n/locale.svelte";
import { t } from "$lib/v1/i18n/t";
import { getTheme, initTheme, setTheme } from "$lib/theme.svelte";
import { onMount } from "svelte";
import "../../app_v1.css";
@@ -18,7 +18,7 @@
</script>
<svelte:head>
<link rel="icon" href="/favicon.svg" />
<link rel="icon" href={`${resolve("/")}favicon.svg`} />
</svelte:head>
<div class="app">