-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
33 lines (33 loc) · 1.15 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
<!DOCTYPE html>
<html>
<head>
<title>{app_title}</title>
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register(
'/{base_path}/assets/sw.js'
);
}
</script>
<link rel="manifest" href="/{base_path}/assets/manifest.json">
<link rel="icon" type="image/x-icon" href="/{base_path}/assets/favicon.ico">
<link rel="apple-touch-icon" sizes="180x180" href="/{base_path}/assets/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/{base_path}/assets/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/{base_path}/assets/favicon-16x16.png">
<link rel="stylesheet" href="/{base_path}/assets/chota.min.css">
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8" />
</head>
<body>
<div id="main"></div>
<script type="module">
import init from "/{base_path}/wasm/{app_name}.js";
init("/{base_path}/wasm/{app_name}_bg.wasm").then(wasm => {
if (wasm.__wbindgen_start == undefined) {
wasm.main();
}
});
</script>
</body>
</html>