-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
38 lines (35 loc) · 1.32 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<!-- <meta name="viewport" content="width=device-width, initial-scale=1.0" /> -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,viewport-fit=cover">
<meta name="format-detection" content="telephone=no">
<meta name="format-detection" content="email=no">
<title>Vite App</title>
<script>
(function () {
var url = new URL(location.href)
var cacheTimestamp = window.sessionStorage.getItem('team-platform-timestamp')
if (!cacheTimestamp) {
var newTimestamp = new Date().getTime()
if (new URLSearchParams(window.location.search).get('timestamp') || '') {
url.search = url.search.replace(/(timestamp=)[^&]*/, '$1' + newTimestamp)
} else {
var timestampString = 'timestamp=' + newTimestamp
url.search += (url.search.indexOf('?') !== -1 ? '&' : '?') + timestampString
}
window.sessionStorage.setItem('team-platform-timestamp', newTimestamp)
window.location.replace(url.href)
}
})()
</script>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>