-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
35 lines (35 loc) · 998 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
32
33
34
35
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Suporka Vue App</title>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0,user-scalable=no"
/>
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<style>
body {
padding: 0;
margin: 0;
}
</style>
</head>
<body>
<div id="app"></div>
</body>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker
.register('./service-worker.js')
.then(registration => {
console.log('service-worker registed');
})
.catch(error => {
console.log('service-worker registed error');
});
});
}
</script>
</html>