Skip to content

Commit d0feb5c

Browse files
committed
NEW
1 parent 2a35757 commit d0feb5c

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

extend/flutter/gatsp/index.html

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
This is a placeholder for base href that will be replaced by the value of
1515
the `--base-href` argument provided to `flutter build`.
1616
-->
17-
<base href="/">
17+
<base href="/pythonnotjava.github.io/extend/flutter/gatsp/">
1818

1919
<meta charset="UTF-8">
2020
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
@@ -23,16 +23,36 @@
2323
<!-- iOS meta tags & icons -->
2424
<meta name="apple-mobile-web-app-capable" content="yes">
2525
<meta name="apple-mobile-web-app-status-bar-style" content="black">
26-
<meta name="apple-mobile-web-app-title" content="gatsp">
26+
<meta name="apple-mobile-web-app-title" content="example">
2727
<link rel="apple-touch-icon" href="icons/Icon-192.png">
2828

2929
<!-- Favicon -->
3030
<link rel="icon" type="image/png" href="favicon.png"/>
3131

32-
<title>gatsp</title>
32+
<title>example</title>
3333
<link rel="manifest" href="manifest.json">
34+
35+
<script>
36+
// The value below is injected by flutter build, do not touch.
37+
var serviceWorkerVersion = '2624461729';
38+
</script>
39+
<!-- This script adds the flutter initialization JS code -->
40+
<script src="flutter.js" defer></script>
3441
</head>
3542
<body>
36-
<script src="flutter_bootstrap.js" async></script>
43+
<script>
44+
window.addEventListener('load', function(ev) {
45+
// Download main.dart.js
46+
_flutter.loader.loadEntrypoint({
47+
serviceWorker: {
48+
serviceWorkerVersion: serviceWorkerVersion,
49+
}
50+
}).then(function(engineInitializer) {
51+
return engineInitializer.initializeEngine();
52+
}).then(function(appRunner) {
53+
return appRunner.runApp();
54+
});
55+
});
56+
</script>
3757
</body>
38-
</html>
58+
</html>

0 commit comments

Comments
 (0)