We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48bbcb6 commit bd424d0Copy full SHA for bd424d0
serviceworker.js
@@ -42,3 +42,8 @@ workbox.routing.registerRoute(
42
]
43
})
44
);
45
+
46
+workbox.routing.setCatchHandler(({event}) => {
47
+ // respond with "app offline" message when API cannot be reached
48
+ if (apiURL.test(event.request.url)) return caches.match("/offline/decode.json");
49
+});
0 commit comments