-
Notifications
You must be signed in to change notification settings - Fork 41
/
index.html
57 lines (55 loc) · 1.72 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<link rel="icon" href="/favicon.svg"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="theme-color" content="#000000"/>
<meta
name="description"
content="Provide liquidity, swap and exchange assets on top of Ergo and Cardano blockchains"
/>
<meta http-equiv="Cache-control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta property="og:image" content="/og-image.png">
<link rel="apple-touch-icon" href="/apple-touch-icon.png"/>
<link rel="manifest" href="/manifest.json"/>
<title>Spectrum</title>
<style>
#app { height: 100% }
#app > div { height: 100% }
</style>
</head>
<body>
<noscript>You should enable JavaScript to run this app.</noscript>
<div id="app"></div>
<script type="module" src="/src/nodespecific.ts"></script>
<script type="module" src="/src/index.tsx"></script>
<script>
window
.addEventListener('load', event => {
if ('serviceWorker' in navigator) {
navigator
.serviceWorker
.getRegistrations()
.then(registrations => registrations ? registrations[0] : undefined)
.then(sw => {
const intervalMS = 10 * 1000;
sw.onupdatefound = () => {
console.log('sw update found. Please reload the page.')
window.needUpdate = true
}
setInterval(() => {
try {
console.log(`sw update start`)
sw.update()
} catch {
console.warn(`sw updated with error`)
}
}, intervalMS);
})
}
})
</script>
</body>
</html>