Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bpd01001 committed Sep 24, 2024
1 parent d1cc9ed commit 40fc490
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 4 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@
<link rel="stylesheet" type="text/css" href="https://cdn.skypack.dev/@ionic/core@next/css/ionic.bundle.css" />
<script type="module" src="https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic/ionic.esm.js"></script>
<script nomodule src="https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic/ionic.js"></script>
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('sw.js');
}
</script>
<link rel="stylesheet" href="css/styles.css" />

<!-- Register your service worker here... -->


</head>

<body class="home-page">
Expand Down
3 changes: 2 additions & 1 deletion sw.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Name of our cache
const cacheName = 'offline-pwa-gallery-v1';

// URLs to cache for offline mode
const urlsToCache = [

];
Expand All @@ -17,7 +18,7 @@ self.addEventListener('install', (event) => {
// Intercept fetch requests to serve cached assets
self.addEventListener('fetch', (event) => {
if(event.request.url.match(/^https:\/\//)){
console.log('Browser is requesting', event.request.url);
console.log('Browser is requesting:', event.request.url);
}
event.respondWith(
caches.match(event.request).then((cachedResponse) => {
Expand Down

0 comments on commit 40fc490

Please sign in to comment.