Skip to content

Commit

Permalink
Cache fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
bokub committed Aug 21, 2020
1 parent 2af3d70 commit 3dffb0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ const PRECACHE_URLS = [
'npm/[email protected]/addon/scroll/simplescrollbars.css,' +
'npm/[email protected]/theme/dracula.min.css,' +
'npm/[email protected]/microtip.min.css',
'https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-Regular.woff2',
'https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff/JetBrainsMono-Regular.woff',
'https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/ttf/JetBrainsMono-Regular.ttf',
'https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4mxK.woff2',
];

// The install handler takes care of precaching the resources we always need.
Expand Down

0 comments on commit 3dffb0b

Please sign in to comment.