-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
27 lines (27 loc) · 834 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Livraria Flip</title>
<link rel="manifest" href="./manifest.json">
<meta name="theme-color" content="#3498db">
<link rel="stylesheet" href="./dist/style.css">
</head>
<body>
<div id="app"></div>
<script src="./dist/build.js"></script>
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('./sw.js')
.then(function(reg) {
// registration worked
console.log('Registration succeeded. Scope is ' + reg.scope);
}).catch(function(error) {
// registration failed
console.log('Registration failed with ' + error);
});
}
</script>
</body>
</html>