Skip to content

Commit

Permalink
fix: urlsToCache
Browse files Browse the repository at this point in the history
  • Loading branch information
joekiller committed Jul 9, 2024
1 parent d89527d commit 663340c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
12 changes: 6 additions & 6 deletions example-web/react2/public/service-worker.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const CACHE_NAME = "ps99-cache-v2";
const urlsToCache = [
"/",
"/bundle.js",
"/manifest.json",
"/icons/icon-192x192.png",
"/icons/icon-512x512.png",
"/collections",
"/node-ps99-api/",
"/node-ps99-api/bundle.js",
"/node-ps99-api/manifest.json",
"/node-ps99-api/icons/icon-192x192.png",
"/node-ps99-api/icons/icon-512x512.png",
"/node-ps99-api/collections",
];

self.addEventListener("install", (event) => {
Expand Down
10 changes: 8 additions & 2 deletions example-web/react2/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ const App: React.FC = () => {
<Routes>
<Route path="/" element={<HomePage />} />
<Route path="/collections" element={<CollectionsIndex />} />
<Route path="/collections/:collectionName" element={<CollectionConfigIndex />} />
<Route path="/collections/:collectionName/:configName" element={<DynamicCollectionConfigData />} />
<Route
path="/collections/:collectionName"
element={<CollectionConfigIndex />}
/>
<Route
path="/collections/:collectionName/:configName"
element={<DynamicCollectionConfigData />}
/>
</Routes>
<Footer />
</Router>
Expand Down

0 comments on commit 663340c

Please sign in to comment.