-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
34 lines (34 loc) · 1.07 KB
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link
rel="icon"
href="https://img.icons8.com/cute-clipart/64/000000/chat.png"
/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="A simple group chat app" />
<link
rel="apple-touch-icon"
href="https://img.icons8.com/cute-clipart/64/000000/chat.png"
/>
<link rel="manifest" href="/manifest.json" />
<title>Group Chat App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<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>
<script type="module" src="/src/index.jsx"></script>
</body>
</html>