Skip to content

Commit

Permalink
Fix PWA 5
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasMFR committed Mar 8, 2024
1 parent 8457348 commit f5b7885
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
13 changes: 11 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,23 @@
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Compteur</title>

<!-- Meta -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<meta name="theme-color" content="#ffc555">
<title>Compteur</title>

<!-- CSS -->
<link rel="stylesheet" href="style.css">
<link rel="manifest" href="manifest.json">

<!-- PWA manifest -->
<link rel="manifest" href="/manifest.json">

<!-- Favicons -->
<link rel="icon" type="image/png" sizes="32x32" href="icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="icons/favicon-16x16.png">

<!-- JavaScript -->
<script src="script.js"></script>
</head>
<body>
Expand All @@ -27,6 +35,7 @@
<button id="reinitialiser">Remettre le compteur à zéro</button>
</div>

<!-- Service Worker -->
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
Expand Down
1 change: 0 additions & 1 deletion service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const urlsToCache = [
'/',
'/index.html',
'/style.css',
'/script.js',
'/app.js',
'/icon/lowres.webp',
'/icon/hd_hi.ico'
Expand Down

0 comments on commit f5b7885

Please sign in to comment.