-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathindex.html
56 lines (48 loc) · 1.75 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
id="viewport"
name="viewport"
content="width=device-width, initial-scale=1, interactive-widget=resizes-content"
/>
<meta name="title" content="Nerimity" />
<meta name="theme-color" content="#000000" />
<meta property="og:title" content="Nerimity" />
<meta
name="og:description"
content="Nerimity is a open source, modern and sleek chat app
made for everyone with features such as the ability to
make servers, a lot of customization and a lot more!"
/>
<meta
name="description"
content="Nerimity is a open source, modern and sleek chat app
made for everyone with features such as the ability to
make servers, a lot of customization and a lot more!"
/>
<link rel="manifest" href="/manifest.webmanifest" />
<link rel="icon" type="image/png" href="/favicon.ico" />
<!-- Needed to verify if a Google Drive file is not modified and to get metadata and additional info. -->
<script src="https://apis.google.com/js/api.js"></script>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script src="/src/index.tsx" type="module"></script>
</body>
<script>
// Remove PWA worker. Caused issues with updating Nerimity (I think?)
navigator.serviceWorker?.getRegistrations().then((workers) => {
workers.forEach((worker) => {
if (worker.active?.scriptURL === "https://nerimity.com/sw.js") {
worker.unregister().then(() => {
console.log("Removed worker sw.js");
location.reload();
});
}
});
});
</script>
</html>