Skip to content

Commit

Permalink
chore: app: update flutter for web initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
mytja committed Dec 31, 2024
1 parent b4a583c commit 09f3d27
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions tarok/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,15 @@

<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = null;
{{flutter_service_worker_version}}
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></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();
});
}
});
});
{{flutter_bootstrap_js}}
</script>
</body>

Expand Down

0 comments on commit 09f3d27

Please sign in to comment.