fix pwa
Deploy to Cloudflare Pages / deploy (push) Successful in 58s

This commit is contained in:
2026-08-24 10:03:32 +07:00 Unverified
parent 05b1434a80
commit 889f684b99
+3
View File
@@ -4,9 +4,11 @@
import { ModeWatcher } from "mode-watcher";
import favicon from "$lib/assets/favicon.webp";
import { onMount } from "svelte";
import { pwaInfo } from "virtual:pwa-info";
import { isLoading } from "svelte-i18n";
let { children } = $props();
const webManifestLink = $derived(pwaInfo ? pwaInfo.webManifest.linkTag : "");
onMount(async () => {
const { registerSW } = await import("virtual:pwa-register");
@@ -31,6 +33,7 @@
<title>HotFridge</title>
<link rel="icon" href={favicon} />
<meta name="darkreader" content="disable" />
{@html webManifestLink}
</svelte:head>
<ModeWatcher />
{#if !$isLoading}