Skip to content

Commit

Permalink
Added index.html 🎪
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranav-yadav authored Oct 23, 2021
1 parent c6c6da2 commit 3dee848
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8" />
<link rel="icon" type="image/png" href="./images/logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Modern PWA Weather Rect Application" />
<link rel="apple-touch-icon" type="image/png" href="./images/logo.png" />
<link rel="manifest" href="./manifest.json" />
<title>Weather App | PWA</title>
</head>

<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root">
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('./serviceworker.js')
.then((reg) => console.log('Success: ', reg.scope))
.catch((err) => console.log('Failure: ', err));
})
}
</script>
</div>
</body>

</html>

0 comments on commit 3dee848

Please sign in to comment.