-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
35 lines (31 loc) · 990 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<link rel="manifest" href="/manifest.json" />
<link rel="shortcut icon" href="/assets/icons/icon-144x144.png" />
<link rel="apple-touch-icon" href="/assets/icons/icon-152x152.png" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
/>
<title>PWA Boy</title>
<script>
if ("serviceWorker" in navigator) {
navigator.serviceWorker
.register("serviceworker.js")
.then(function (registration) {
console.log("Service worker registered successfully", registration);
})
.catch(function (err) {
console.log("Service worker registration failed: ", err);
});
}
</script>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>