make web installable

This commit is contained in:
2023-07-07 14:39:49 +02:00
parent f4f93fbfde
commit d9d68c190f
5 changed files with 68 additions and 0 deletions
+9
View File
@@ -5,6 +5,8 @@
<meta name="author" content="Xaloc">
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" href="style.css">
<link rel="manifest" href="manifest.json">
<link rel="apple-touch-icon" href="img/icon.png"/>
<title>Currency Converter</title>
</head>
@@ -53,5 +55,12 @@
</div>
</div>
<script src='script.js'></script>
<script>
if('serviceWorker' in navigator){
navigator.serviceWorker.register('/service-worker.js');
} else {
console.log("Service worker is not supported");
}
</script>
</body>
</html>