@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user