|
@@ -22,7 +22,7 @@ if (!self.define) {
|
|
|
const singleRequire = (uri, parentUri) => {
|
|
|
uri = new URL(uri + ".js", parentUri).href;
|
|
|
return registry[uri] || (
|
|
|
-
|
|
|
+
|
|
|
new Promise(resolve => {
|
|
|
if ("document" in self) {
|
|
|
const script = document.createElement("script");
|
|
@@ -35,7 +35,7 @@ if (!self.define) {
|
|
|
resolve();
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
.then(() => {
|
|
|
let promise = registry[uri];
|
|
|
if (!promise) {
|
|
@@ -82,21 +82,11 @@ define(['./workbox-5357ef54'], (function (workbox) { 'use strict';
|
|
|
"revision": "3ca0b8505b4bec776b69afdba2768812"
|
|
|
}, {
|
|
|
"url": "index.html",
|
|
|
- "revision": "0.k9m6fls6u18"
|
|
|
+ "revision": "0.dm3q4j1upco"
|
|
|
}], {});
|
|
|
workbox.cleanupOutdatedCaches();
|
|
|
- workbox.registerRoute(
|
|
|
- new workbox.NavigationRoute(workbox.createHandlerBoundToURL('index.html'), {
|
|
|
- allowlist: [/^\/$/]
|
|
|
- }),
|
|
|
- workbox.strategies.networkOnly()
|
|
|
- );
|
|
|
- workbox.routing.registerRoute(
|
|
|
- new RegExp('.*.html|css'),
|
|
|
- workbox.strategies.networkFirst()
|
|
|
- );
|
|
|
- workbox.routing.registerRoute(
|
|
|
- new RegExp('|js'),
|
|
|
- workbox.strategies.networkOnly()
|
|
|
- );
|
|
|
-});
|
|
|
+ workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
|
|
|
+ allowlist: [/^\/$/]
|
|
|
+ }));
|
|
|
+
|
|
|
+}));
|