feat: web favicon to reflect new icon

This commit is contained in:
sBubshait 2025-07-17 11:23:21 +03:00
parent 8a5388f2c1
commit d4ddc75e6c

View File

@ -1,5 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<!-- <!--
If you are serving your web app in a path other than the root, change the If you are serving your web app in a path other than the root, change the
@ -27,27 +28,29 @@
<link rel="apple-touch-icon" href="icons/ios/180.png"> <link rel="apple-touch-icon" href="icons/ios/180.png">
<!-- Favicon --> <!-- Favicon -->
<link rel="icon" type="image/png" href="icons/ios/32.png"/> <link rel="icon" type="image/png" href="icons/ios/32.png" />
<title>Wesal</title> <title>Wesal</title>
<link rel="manifest" href="manifest.json"> <link rel="manifest" href="manifest.json">
</head> </head>
<body> <body>
<script src="flutter_bootstrap.js" async></script> <script src="flutter_bootstrap.js" async></script>
<!-- Firebase Messaging Service Worker --> <!-- Firebase Messaging Service Worker -->
<script> <script>
if ('serviceWorker' in navigator) { if ('serviceWorker' in navigator) {
window.addEventListener('load', function() { window.addEventListener('load', function () {
navigator.serviceWorker.register('/firebase-messaging-sw.js') navigator.serviceWorker.register('/firebase-messaging-sw.js')
.then(function(registration) { .then(function (registration) {
console.log('Firebase Messaging Service Worker registered successfully:', registration); console.log('Firebase Messaging Service Worker registered successfully:', registration);
}) })
.catch(function(error) { .catch(function (error) {
console.log('Firebase Messaging Service Worker registration failed:', error); console.log('Firebase Messaging Service Worker registration failed:', error);
}); });
}); });
} }
</script> </script>
</body> </body>
</html>
</html>