Skip to content

Commit

Permalink
Migrate DartPad UI (not frame) to new bootstrap mechanism (#3012)
Browse files Browse the repository at this point in the history
  • Loading branch information
parlough committed Jun 27, 2024
1 parent 08d4351 commit 1991c72
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions pkgs/dartpad_ui/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@
<title>DartPad</title>
<link rel="manifest" href="manifest.json">

<script>
// The value below is injected by flutter build, do not touch.
const serviceWorkerVersion = null;
</script>

<link href="https://fonts.googleapis.com/css2?family=Roboto&family=Roboto+Mono&display=swap" rel="stylesheet">
<link href="codemirror/codemirror.css" rel="stylesheet">
<link href="styles/cm-dartpad-dark.css" rel="stylesheet" media="screen">
Expand Down Expand Up @@ -84,27 +79,10 @@
width: 100%;
}
</style>

<!-- 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();
});
}
});
});
</script>
<script src="flutter_bootstrap.js" async></script>
</body>

</html>

0 comments on commit 1991c72

Please sign in to comment.