Fix web template again
This commit is contained in:
parent
4726e9b6d0
commit
07ffa8d13c
|
|
@ -1,20 +0,0 @@
|
||||||
{{ '{{flutter_js}}' }}
|
|
||||||
{{ '{{flutter_build_config}}' }}
|
|
||||||
|
|
||||||
var loading = document.querySelector('#loading');
|
|
||||||
_flutter.loader.load({
|
|
||||||
serviceWorkerSettings: {
|
|
||||||
serviceWorkerVersion: {{ '{{flutter_service_worker_version}}' }},
|
|
||||||
},
|
|
||||||
onEntrypointLoaded: async function (engineInitializer) {
|
|
||||||
loading.classList.add('main_done');
|
|
||||||
const appRunner = await engineInitializer.initializeEngine({useColorEmoji: useColorEmoji});
|
|
||||||
|
|
||||||
loading.classList.add('init_done');
|
|
||||||
await appRunner.runApp();
|
|
||||||
|
|
||||||
window.setTimeout(function () {
|
|
||||||
loading.remove();
|
|
||||||
}, 200);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
@ -33,7 +33,9 @@
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<script src="flutter_bootstrap.js" async></script>
|
<script>
|
||||||
|
{{ '{{flutter_bootstrap_js}}' }}
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
Loading…
Reference in New Issue