make web installable
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user