forked from newthuhole/hole_thu_frontend
200622192957
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
|
||||
|
||||
importScripts(
|
||||
"//cdn.jsdelivr.net/gh/thuhole/webhole@gh-pages/precache-manifest.0fec43d7f462838ac69d811b1fe4a234.js"
|
||||
"/gh/thuhole/webhole@gh-pages/precache-manifest.d32990d1257748a0bd191611e472145e.js"
|
||||
);
|
||||
|
||||
self.addEventListener('message', (event) => {
|
||||
@@ -33,7 +33,7 @@ workbox.core.clientsClaim();
|
||||
self.__precacheManifest = [].concat(self.__precacheManifest || []);
|
||||
workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
|
||||
|
||||
workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("./index.html"), {
|
||||
workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("/gh/thuhole/webhole@gh-pages/index.html"), {
|
||||
|
||||
blacklist: [/^\/_/,/\/[^/?]+\.[^/]+$/],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user