Skip to content

Commit

Permalink
Deploying to gh-pages from @ 36c0bad 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
nenadalm committed Jan 6, 2024
1 parent b645d8e commit 04de7ad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#121212">
<meta name="app-version" content="c3d9f5c3c8b4f5d5d805050cc795e881ca80b6a6">
<meta name="app-version" content="36c0badc5829cbe934d05564b8a51ac3cc8f25a8">
<meta name="description" content="Simple life counter app that works offline.">
<title>Life counter</title>
<link rel="stylesheet" href="css/styles.9e19bd93a962bf6536dd8278190bfd72978658ef.css">
Expand Down
2 changes: 1 addition & 1 deletion js/app.7C040D89C8D45CD847E83929BE3F9348.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions worker.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const relatedAppVersion = "c3d9f5c3c8b4f5d5d805050cc795e881ca80b6a6";
const relatedAppVersion = "36c0badc5829cbe934d05564b8a51ac3cc8f25a8";
const urlsToCache = ["index.html","manifest.json","img/icon.svg","js/app.7C040D89C8D45CD847E83929BE3F9348.js","css/styles.9e19bd93a962bf6536dd8278190bfd72978658ef.css"];

const cacheKey = `resources.${relatedAppVersion}`;

function ensureHtmlVersionMatches(cache) {
return cache.match(new Request('/index.html'))
return cache.match(new Request('index.html'))
.then(response => response.text())
.then(html => html.match(/<meta name="app-version" content="(.*?)">/)[1])
.then(version => {
Expand Down

0 comments on commit 04de7ad

Please sign in to comment.