From 44519eb0c9d1c4bc5295708bd8feeb174c04825a Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Fri, 13 May 2022 21:24:18 -0700 Subject: web: host fonts locally --- web/static/sw.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'web/static/sw.js') 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) { -- cgit v1.2.3-70-g09d2