diff --git a/core/src/web/local-notifications.ts b/core/src/web/local-notifications.ts index 86d25733b..24bb64b05 100644 --- a/core/src/web/local-notifications.ts +++ b/core/src/web/local-notifications.ts @@ -98,7 +98,7 @@ export class LocalNotificationsPluginWeb extends WebPlugin implements LocalNotif requestPermissions(): Promise { return new Promise((resolve, reject) => { - Notification.requestPermission().then((result) => { + Notification.requestPermission((result) => { if (result === 'denied' || result === 'default') { reject(result); return; @@ -106,8 +106,6 @@ export class LocalNotificationsPluginWeb extends WebPlugin implements LocalNotif resolve({ results: [ result ] }); - }).catch((e) => { - reject(e); }); }); }