Skip to content

Commit

Permalink
Use Flutter 3.22 web app initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
DavBfr committed May 16, 2024
1 parent 1e389d8 commit 5c04255
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions demo/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,28 +31,8 @@

<title>Flutter PDF Demo</title>
<link rel="manifest" href="manifest.json">

<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = null;
</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,
}
}).then(function(engineInitializer) {
return engineInitializer.initializeEngine();
}).then(function(appRunner) {
return appRunner.runApp();
});
});
</script>
<script src="flutter_bootstrap.js" async></script>
</body>
</html>

0 comments on commit 5c04255

Please sign in to comment.