mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
message
This commit is contained in:
@@ -48,36 +48,6 @@
|
||||
}
|
||||
</script> -->
|
||||
|
||||
<script>
|
||||
if (navigator.serviceWorker) {
|
||||
navigator.serviceWorker.register("assets/firebase-messaging-sw.js").then(function(reg) {
|
||||
window.pushReg = reg;
|
||||
if (reg.installing) {
|
||||
console.info('Service worker installing');
|
||||
} else if (reg.waiting) {
|
||||
console.info('Service worker installed');
|
||||
} else if (reg.active) {
|
||||
console.info('Service worker active');
|
||||
}
|
||||
if (!(reg.showNotification)) {
|
||||
console.info('Notifications aren\'t supported on service workers.');
|
||||
}
|
||||
// Check if push messaging is supported
|
||||
if (!('PushManager' in window)) {
|
||||
console.info("Push messaging isn't supported.");
|
||||
}
|
||||
|
||||
if (Notification.permission === 'denied') {
|
||||
console.info('The user has blocked notifications.');
|
||||
}
|
||||
}).catch(err => {
|
||||
console.error(JSON.stringify(err));
|
||||
});
|
||||
} else {
|
||||
console.info("Service workers aren't supported in this browser.");
|
||||
}
|
||||
</script>
|
||||
|
||||
<meta name="color-scheme" content="light dark" />
|
||||
<meta name="viewport" content="viewport-fit=cover, width=device-width, height=device-hight, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
<meta name="format-detection" content="telephone=no" />
|
||||
|
||||
Reference in New Issue
Block a user