Skip to content

Commit 112cefb

Browse files
committed
Fix undefined offlineFallbackPage in service worker fallback
1 parent 9be0d08 commit 112cefb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
22
global
33
4-
offlineFallbackPage
54
*/
65

76
// This is the "Offline page" service worker
@@ -11,6 +10,7 @@ const precacheFiles = [
1110
/* Add an array of files to precache for your app */
1211
"./index.html"
1312
];
13+
const offlineFallbackPage = "./index.html";
1414

1515
self.addEventListener("install", function (event) {
1616
// eslint-disable-next-line no-console

0 commit comments

Comments
 (0)