Fix web template again

This commit is contained in:
Feodor Fitsner 2024-10-14 14:25:25 -07:00
parent 4726e9b6d0
commit 07ffa8d13c
2 changed files with 3 additions and 21 deletions

View File

@ -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);
}
});

View File

@ -33,7 +33,9 @@
</head>
<body>
<script src="flutter_bootstrap.js" async></script>
<script>
{{ '{{flutter_bootstrap_js}}' }}
</script>
</body>
</html>