forked from johnbeatty/worlds-fastest-pwa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
23 lines (23 loc) · 776 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>The World's Fastest PWA</title>
<link rel="manifest" href="/worlds-fastest-pwa/manifest.json">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#C50001"/>
<meta name="Description" content="The World's Fastest PWA">
</head>
<body>
<h1>The World's Fastest PWA</h1>
<p>This is the one!</p>
<script type="text/javascript">
if (navigator.serviceWorker) {
navigator.serviceWorker.register('/worlds-fastest-pwa/service-worker.js', { scope: '/worlds-fastest-pwa/' })
.then(function(reg) {
console.log('[Companion]', 'Service worker registered!');
console.log(reg);
});
}
</script>
</body>
</html>