Skip to content

Commit

Permalink
Experiment: switching webp map for avif
Browse files Browse the repository at this point in the history
  • Loading branch information
StrawberryMaster committed Jul 2, 2024
1 parent dd09afb commit 2a8f683
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions service-worker.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const appPrefix = 'TrackGen';
const appVersion = 'v1.0.5';
const appVersion = 'v1.0.6';
const cacheName = `${appPrefix}-${appVersion}`;
const foldersToCache = ['media', 'js', 'css'];
const additionalCache = ['/', 'manifest.json', 'index.html'];
Expand All @@ -15,7 +15,7 @@ async function generateFilesToCache() {
let match;

while ((match = regex.exec(folderFiles)) !== null) {
if (match[1] !== 'bg16383.webp') {
if (match[1] !== 'bg19440.avif') {
filesToCache.push(`/${folder}/${match[1]}`);
}
}
Expand Down
2 changes: 1 addition & 1 deletion static/js/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const mapSelector = document.getElementById('map-selector');

// Preloads the map images
const mapUrls = {
"xlarge": "static/media/bg16383.webp",
"xlarge": "static/media/bg19440.avif",
"large-nxtgen": "static/media/bg21600-nxtgen.jpg",
"large": "static/media/bg12000.jpg",
"blkmar": "static/media/bg13500-blkmar.jpg",
Expand Down
Binary file added static/media/bg19440.avif
Binary file not shown.

0 comments on commit 2a8f683

Please sign in to comment.