-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
34 lines (31 loc) · 1.04 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" />
<meta name="theme-color" content="#000000" />
<link rel="manifest" href="./manifest.json" />
<link href=" https://cdn.jsdelivr.net/npm/[email protected]/index.min.css " rel="stylesheet">
<link rel="icon" type="image/png" href="/daksha.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Daksha'24</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function () {
navigator.serviceWorker.register('worker.js').then(function (registration) {
console.log('Worker registration successful', registration.scope);
}, function (err) {
console.log('Worker registration failed', err);
}).catch(function (err) {
console.log(err);
});
});
} else {
console.log('Service Worker is not supported by browser.');
}
</script>
</body>
</html>