diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-13 21:24:18 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-13 21:24:18 -0700 |
commit | 44519eb0c9d1c4bc5295708bd8feeb174c04825a (patch) | |
tree | 4ad5203f86779833b42edcf244e231d4c0702dd9 /web/static/sw.js | |
parent | b67982a90f861ba29e41ed366a481af707bd1c79 (diff) | |
download | dartboat-44519eb0c9d1c4bc5295708bd8feeb174c04825a.tar.gz dartboat-44519eb0c9d1c4bc5295708bd8feeb174c04825a.tar.xz |
web: host fonts locally
Diffstat (limited to 'web/static/sw.js')
-rw-r--r-- | web/static/sw.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/web/static/sw.js b/web/static/sw.js index 6359ae5..bf1d818 100644 --- a/web/static/sw.js +++ b/web/static/sw.js @@ -1,5 +1,5 @@ const CACHE_PREFIX = 'dartboat-' -const CACHE_VERSION = '4'; +const CACHE_VERSION = '5'; const CACHE_NAME = `${CACHE_PREFIX}${CACHE_VERSION}`; const CACHE_FILES = [ @@ -8,8 +8,13 @@ const CACHE_FILES = [ 'dartboat.js', 'dartboat_wasm.js', 'dartboat_wasm.wasm', - 'fonts/bootstrap-icons-sub.woff2', - 'fonts/inter-num.woff2' + 'fonts/Lato-Regular.woff2', + 'fonts/Lato-Bold.woff2', + 'fonts/SourceSerif4-Regular.ttf.woff2', + 'fonts/SourceSerif4-It.ttf.woff2', + 'fonts/SourceSerif4-Bold.ttf.woff2', + 'fonts/Inter-num.woff2', + 'fonts/bootstrap-icons-sub.woff2' ] function swlog(str) { |