-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
45 lines (45 loc) · 1.25 KB
/
index.html
File metadata and controls
45 lines (45 loc) · 1.25 KB
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
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="apple-mobile-web-app-title" content="Video capture" />
<meta name="application-name" content="Video capture" />
<meta
name="apple-mobile-web-app-status-bar-style"
content="black-translucent"
/>
<meta name="theme-color" content="#FE6663" />
<link rel="manifest" href="/manifest.webmanifest" />
<link
rel="apple-touch-icon"
sizes="192x192"
href="/images/icons/icon-192x192.png"
/>
<link
rel="icon"
type="image/png"
href="/images/icons/icon-192x192.png"
sizes="192x192"
/>
</head>
<body>
<div id="root"></div>
<script src="./index.js"></script>
<script>
if ('serviceWorker' in navigator) {
let sw = 'service-worker.js';
navigator.serviceWorker
.register(sw)
.then(function(registration) {
console.log(
'Registration successful, scope is:',
registration.scope,
);
})
.catch(function(error) {
console.log('Service worker registration failed, error:', error);
});
}
</script>
</body>
</html>