-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
31 lines (31 loc) · 974 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
24
25
26
27
28
29
30
31
<html>
<head>
<meta name="theme-color" content="#dfdfdf">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="/images/icons-512.png">
<link rel="manifest" href="/manifest.webmanifest" />
<link
href="https://fonts.googleapis.com/css?family=Quicksand&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="/src/style.scss" />
</head>
<body>
<noscript>
<h1>Please enable JavaScript to use Phonics app.</h1>
</noscript>
<div id="app"></div>
<script src="/src/index.re"></script>
<script>
if ('serviceWorker' in navigator) {
const sw = "sw.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>
</html>