Skip to content

Commit e32949e

Browse files
committed
fix レビューfix
1 parent 77b7c1e commit e32949e

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

frontend/src/lib/components/PWAUpdateNotification.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
showUpdatePrompt = true;
1717
},
1818
onOfflineReady() {
19-
// PWA is ready for offline use
19+
// PWA はオフライン使用の準備が完了しました
2020
},
2121
});
2222
} catch (error) {

frontend/src/lib/components/atoms/OfflineBanner.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<script lang="ts">
22
import { _ } from "svelte-i18n";
33
import "$lib/i18n";
4+
import { page } from "$app/stores";
45
import { isOnline } from "$lib/online-store";
56
</script>
67

7-
{#if !$isOnline}
8+
{#if !$isOnline && $page.url.pathname !== "/offline"}
89
<div
910
role="status"
1011
aria-live="polite"

frontend/src/routes/+layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,4 @@
9696
<!-- PWA Components -->
9797
<PWAInstallPrompt />
9898
<PWAUpdateNotification />
99-
<OfflineBanner />
99+
<OfflineBanner />

0 commit comments

Comments
 (0)