chore: host workbox locally (#3154)

This commit is contained in:
David Luzar 2021-03-02 19:36:28 +01:00 committed by GitHub
parent 418589e7ad
commit 91eb8834e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 39 additions and 4 deletions

View file

@ -17,9 +17,11 @@
* See https://goo.gl/2aRDsh
*/
importScripts(
"https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js",
);
importScripts("/workbox/workbox-sw.js");
workbox.setConfig({
modulePathPrefix: "/workbox/",
});
self.addEventListener("message", (event) => {
if (event.data && event.data.type === "SKIP_WAITING") {