forked from ismartcoding/plain-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
26 lines (24 loc) · 909 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<link rel="manifest" href="/manifest.json" crossOrigin="use-credentials">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes" />
<title>PlainApp</title>
</head>
<body>
<div id="browser-issue">Your browser is not supported or up-to-date. Please try updating it.</div>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
<script type="text/javascript">
if ('customElements' in window) {
document.getElementById('browser-issue').style.display = 'none';
} else {
if (navigator.language === 'zh-CN') {
document.getElementById('browser-issue').innerHTML = '您的浏览器不支持或者版本过低,请尝试更新。';
}
}
</script>
</html>