✨ PWA
This commit is contained in:
@@ -69,7 +69,7 @@
|
|||||||
<main id="app">
|
<main id="app">
|
||||||
<header>
|
<header>
|
||||||
<div>
|
<div>
|
||||||
<a href="/">
|
<a href="">
|
||||||
<h1 class="logo">Postwoman</h1>
|
<h1 class="logo">Postwoman</h1>
|
||||||
</a>
|
</a>
|
||||||
<h3>API request builder</h3>
|
<h3>API request builder</h3>
|
||||||
|
|||||||
9
sw.js
9
sw.js
@@ -35,10 +35,10 @@ workbox.routing.registerRoute(
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
workbox.precaching.precacheAndRoute([
|
workbox.precaching.precacheAndRoute([
|
||||||
'/style.css',
|
'/postwoman/style.css',
|
||||||
'/script.js',
|
'/postwoman/script.js',
|
||||||
{
|
{
|
||||||
url: '/index.html',
|
url: '/postwoman/index.html',
|
||||||
revision: '383676'
|
revision: '383676'
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
@@ -49,8 +49,7 @@ var CURRENT_CACHES = {
|
|||||||
self.addEventListener('install', function (event) {
|
self.addEventListener('install', function (event) {
|
||||||
var now = Date.now();
|
var now = Date.now();
|
||||||
var urlsToPrefetch = [
|
var urlsToPrefetch = [
|
||||||
'index.html',
|
'/postwoman/index.html',
|
||||||
'manage.html'
|
|
||||||
];
|
];
|
||||||
// All of these logging statements should be visible via the "Inspect" interface
|
// All of these logging statements should be visible via the "Inspect" interface
|
||||||
// for the relevant SW accessed via chrome://serviceworker-internals
|
// for the relevant SW accessed via chrome://serviceworker-internals
|
||||||
|
|||||||
Reference in New Issue
Block a user