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 6ae199c commit dbfa1b0Copy full SHA for dbfa1b0
1 file changed
src/sw.js
@@ -26,10 +26,13 @@ const otherManifest = [
26
},
27
];
28
29
-const allManifestURLs = [...manifest, ...otherManifest].map(
30
- (entry) => new URL(entry.url, self.location).href,
31
-);
32
-
+const allManifestURLs = [
+ new Set(
+ [...manifest, ...otherManifest].map(
+ (entry) => new URL(entry.url, self.location).href,
33
+ ),
34
35
+];
36
self.addEventListener("install", (event) => {
37
event.waitUntil(
38
(async () => {
0 commit comments