fix message

This commit is contained in:
Peter Maquiran
2024-10-23 15:30:15 +01:00
parent 4396b17909
commit 5a64376b03
12 changed files with 116 additions and 161 deletions
@@ -14,16 +14,16 @@ export class WebNotificationPopupService {
askNotificationPermission() {
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {}
else {return false}
else {return false}
// function to actually ask the permissions
function handlePermission(permission) {}
// Let's check if the browser supports notifications
if (!('Notification' in window)) {
} else {
if(this.checkNotificationPromise()) {
Notification.requestPermission()
@@ -51,7 +51,7 @@ export class WebNotificationPopupService {
sendNotification(e) {
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {}
else {return false}
else {return false}
Notification.requestPermission((result) => {
if (result === 'granted') {
@@ -67,15 +67,15 @@ export class WebNotificationPopupService {
// {action: 'reply', title: 'Reply', icon: 'https://example/reply.png'}
// ]
}).then(e =>{
})
});
}
});
}
}