Skip to content

Commit

Permalink
--wasm support fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmzdev committed Sep 8, 2024
1 parent 8eeb513 commit af801ed
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
14 changes: 2 additions & 12 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
-->
<base href="/">

<meta charset="UTF-8">
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
<meta name="description" content="A Selft taught flutter developer, technical writer and open source contributor.">
Expand Down Expand Up @@ -96,17 +96,7 @@
</div>
</div>
</div>
<!-- This script installs service_worker.js to provide PWA functionality to
application. For more information, see:
https://developers.google.com/web/fundamentals/primers/service-workers -->
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('flutter-first-frame', function () {
navigator.serviceWorker.register('flutter_service_worker.js');
});
}
</script>
<script src="main.dart.js" type="application/javascript"></script>
<script src="flutter_bootstrap.js" async></script>
</body>

</html>
14 changes: 13 additions & 1 deletion web/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@
"src": "icons/Icon-512.png",
"sizes": "512x512",
"type": "image/png"
},
{
"src": "icons/Icon-maskable-192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "icons/Icon-maskable-512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
]
}
}

0 comments on commit af801ed

Please sign in to comment.