We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77b7c1e commit e32949eCopy full SHA for e32949e
3 files changed
frontend/src/lib/components/PWAUpdateNotification.svelte
@@ -16,7 +16,7 @@
16
showUpdatePrompt = true;
17
},
18
onOfflineReady() {
19
- // PWA is ready for offline use
+ // PWA はオフライン使用の準備が完了しました
20
21
});
22
} catch (error) {
frontend/src/lib/components/atoms/OfflineBanner.svelte
@@ -1,10 +1,11 @@
1
<script lang="ts">
2
import { _ } from "svelte-i18n";
3
import "$lib/i18n";
4
+ import { page } from "$app/stores";
5
import { isOnline } from "$lib/online-store";
6
</script>
7
-{#if !$isOnline}
8
+{#if !$isOnline && $page.url.pathname !== "/offline"}
9
<div
10
role="status"
11
aria-live="polite"
frontend/src/routes/+layout.svelte
@@ -96,4 +96,4 @@
96
<!-- PWA Components -->
97
<PWAInstallPrompt />
98
<PWAUpdateNotification />
99
-<OfflineBanner />
+<OfflineBanner />
0 commit comments