-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
60 lines (45 loc) · 1.51 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
58
59
60
<!DOCTYPE html>
<html>
<head>
<base href="/">
<meta charset="UTF-8">
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
<meta content="A new Flutter project." name="description">
<!-- iOS meta tags & icons -->
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="ui" name="apple-mobile-web-app-title">
<!-- <link href="icons/Icon-192.png" rel="apple-touch-icon">-->
<!-- Favicon -->
<link href="favicon.png" rel="icon" type="image/png"/>
<title>ui</title>
<link href="manifest.json" rel="manifest">
<script>
// The value below is injected by flutter build, do not touch.
const serviceWorkerVersion = "163945611";
</script>
<!-- This script adds the flutter initialization JS code -->
<script defer src="flutter.js"></script>
</head>
<body>
<script>
window.addEventListener('load', function (ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function (engineInitializer) {
engineInitializer.initializeEngine().then(function (appRunner) {
appRunner.runApp();
});
}
});
});
// load serviceworker earlier
const serviceWorkerActivation = navigator.serviceWorker.register(
"flutter_service_worker.js?v=" + serviceWorkerVersion
);
</script>
</body>
</html>