-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c6c6da2
commit 3dee848
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |