|
21 | 21 | <meta name="description" content="A new Flutter project."> |
22 | 22 |
|
23 | 23 | <!-- iOS meta tags & icons --> |
24 | | - <meta name="apple-mobile-web-app-capable" content="yes"> |
| 24 | + <meta name="mobile-web-app-capable" content="yes"> |
25 | 25 | <meta name="apple-mobile-web-app-status-bar-style" content="black"> |
26 | 26 | <meta name="apple-mobile-web-app-title" content="example"> |
27 | 27 | <link rel="apple-touch-icon" href="icons/Icon-192.png"> |
|
34 | 34 |
|
35 | 35 | <script> |
36 | 36 | // The value below is injected by flutter build, do not touch. |
37 | | - var serviceWorkerVersion = null; |
| 37 | + var serviceWorkerVersion = '{{flutter_service_worker_version}}'; |
38 | 38 | </script> |
39 | 39 | <!-- This script adds the flutter initialization JS code --> |
40 | 40 | <script src="flutter.js" defer></script> |
41 | 41 | </head> |
42 | 42 | <body> |
| 43 | + <script> |
| 44 | + {{flutter_bootstrap_js}} |
| 45 | + </script> |
| 46 | + |
43 | 47 | <!--twilio native js library--> |
44 | 48 | <script type="text/javascript" src="./twilio.min.js"></script> |
45 | 49 |
|
46 | | - <script> |
47 | | - window.addEventListener('load', function(ev) { |
48 | | - // Download main.dart.js |
49 | | - _flutter.loader.loadEntrypoint({ |
50 | | - serviceWorker: { |
51 | | - serviceWorkerVersion: serviceWorkerVersion, |
52 | | - }, |
53 | | - onEntrypointLoaded: function(engineInitializer) { |
54 | | - engineInitializer.initializeEngine().then(function(appRunner) { |
55 | | - appRunner.runApp(); |
56 | | - }); |
57 | | - } |
58 | | - }); |
59 | | - }); |
60 | | - </script> |
| 50 | +<!-- <script>--> |
| 51 | +<!-- window.addEventListener('load', function(ev) {--> |
| 52 | +<!-- // Download main.dart.js--> |
| 53 | +<!-- _flutter.loader.load({--> |
| 54 | +<!-- serviceWorker: {--> |
| 55 | +<!-- serviceWorkerVersion: serviceWorkerVersion,--> |
| 56 | +<!-- },--> |
| 57 | +<!-- onEntrypointLoaded: function(engineInitializer) {--> |
| 58 | +<!-- engineInitializer.initializeEngine().then(function(appRunner) {--> |
| 59 | +<!-- appRunner.runApp();--> |
| 60 | +<!-- });--> |
| 61 | +<!-- }--> |
| 62 | +<!-- });--> |
| 63 | +<!-- });--> |
| 64 | +<!-- </script>--> |
61 | 65 | </body> |
62 | 66 | </html> |
0 commit comments