Add flutter_bootstrap.js
This commit is contained in:
parent
b26b69471d
commit
f461be131a
|
|
@ -0,0 +1,12 @@
|
|||
{{ '{{flutter_js}}' }}
|
||||
{{ '{{flutter_build_config}}' }}
|
||||
|
||||
_flutter.loader.load({
|
||||
serviceWorkerSettings: {
|
||||
serviceWorkerVersion: {{ '{{flutter_service_worker_version}}' }},
|
||||
},
|
||||
onEntrypointLoaded: async function (engineInitializer) {
|
||||
const appRunner = await engineInitializer.initializeEngine({useColorEmoji: useColorEmoji});
|
||||
await appRunner.runApp();
|
||||
}
|
||||
});
|
||||
|
|
@ -33,9 +33,7 @@
|
|||
</head>
|
||||
|
||||
<body>
|
||||
<script>
|
||||
{{ '{{flutter_bootstrap_js}}' }}
|
||||
</script>
|
||||
<script src="flutter_bootstrap.js" async></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Loading…
Reference in New Issue