mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Closes https://github.com/flutter/flutter/issues/154596. It's less clear to me if your goal was to migrate _all_ of these btw: https://github.com/search?q=org%3Aflutter+%22mobile-web-app-capable%22&type=code
43 lines
1.3 KiB
HTML
43 lines
1.3 KiB
HTML
<!DOCTYPE HTML>
|
|
<!-- Copyright 2014 The Flutter Authors. All rights reserved.
|
|
Use of this source code is governed by a BSD-style license that can be
|
|
found in the LICENSE file. -->
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
|
|
|
|
<title>Web Test</title>
|
|
<!-- iOS meta tags & icons -->
|
|
<meta name="mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
<meta name="apple-mobile-web-app-title" content="Web Test">
|
|
|
|
<!-- Favicon -->
|
|
<link rel="icon" type="image/png" href="favicon.png"/>
|
|
<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>
|
|
</body>
|
|
</html>
|