Skip to content

Commit

Permalink
fix(client): include GitHub images in cached files
Browse files Browse the repository at this point in the history
  • Loading branch information
BastiDood committed Jun 19, 2023
1 parent d0e082c commit 4a1c095
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions client/src/sw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ async function installWorker() {
? path.slice(0, -INDEX.length) || '/'
: path;
});

// Manually add GitHub images
files.push(
'https://github.com/avatars/u/39114273',
'https://github.com/avatars/u/98273014',
'https://github.com/avatars/u/31538126',
'https://github.com/avatars/u/22850026',
);

const cache = await caches.open(version);
return cache.addAll(files);
}
Expand Down

0 comments on commit 4a1c095

Please sign in to comment.