generated from flasco/react-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (47 loc) · 1.98 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0,viewport-fit=cover,minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
<meta http-equiv="expires" content="0" />
<!-- 设置Safari全屏,在iOS7+无效 -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-title" content="Book Story" />
<!-- 改变Safari状态栏样式,可选default/black/black-translucent,需在上述全屏模式下才有效 -->
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="screen-orientation" content="portrait" />
<meta name="x5-orientation" content="portrait" />
<!-- 保存网站到桌面时添加图标 -->
<link
rel="apple-touch-icon-precomposed"
href="//cdn.nlark.com/yuque/0/2021/png/753805/1612434694637-9cdb699e-f355-4923-baa8-b9496f3bc1f8.png"
/>
<link rel="apple-touch-icon" href="./static/favicon.ico" />
<meta name="referrer" content="never" />
<meta name="format-detection" content="telephone=no" />
<link rel="icon" type="image/x-icon" class="js-site-favicon" href="static/favicon.ico" />
<link rel="manifest" href="manifest.json" />
<title>Book Story</title>
</head>
<body>
<div id="root">loading script...</div>
<noscript>plz allow script run</noscript>
<script type="module" src="/src/main.tsx"></script>
<script>
// 注册service work
if (navigator.serviceWorker) {
// scope要对
navigator.serviceWorker.register('./sw.js').then(registration => {
console.log('action:', registration.scope);
// return pushMessageAction();
});
}
</script>
</body>
</html>