Skip to content

Commit

Permalink
Update serviceworker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomesk1ll authored Nov 3, 2023
1 parent a1aa384 commit 414ca76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions serviceworker.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const staticFiles = [
'https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap'
];

const FILMS_ORIGINS = ['http://localhost:3000', 'https://gotfilm.tk'];
const FILMS_ORIGINS = ['http://localhost:3000', 'https://gotfilm.tech'];

const getDynamicFiles = async () => {
const list = await fetch('./asset-manifest.json').then(data => data.json());
Expand Down Expand Up @@ -85,4 +85,4 @@ async function cacheFirstOrSave (request) {
}
// console.log(!!cached && 'cached' || !!fetched && 'fetched now' || 'new download / cannot be cached');
return cached ?? fetched ?? await fetch(request.url, options)
}
}

0 comments on commit 414ca76

Please sign in to comment.