-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathindex.html
More file actions
31 lines (31 loc) · 962 Bytes
/
index.html
File metadata and controls
31 lines (31 loc) · 962 Bytes
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
<!doctype html>
<html class="h-full w-full" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Pedro Pathing Visualizer</title>
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
</head>
<body
class="h-full w-full bg-neutral-100 font-poppins dark:bg-neutral-950 dark:text-white"
>
<script type="module" src="/src/main.ts"></script>
<script>
if ("serviceWorker" in navigator) {
navigator.serviceWorker.register("sw.js").then(
(registration) => {
console.log(
"Service worker registration successful:",
registration,
);
},
(error) => {
console.error(`Service worker registration failed: ${error}`);
},
);
} else {
console.error("Service workers are not supported.");
}
</script>
</body>
</html>