var NotificationHandler = { isNotificationSupported: 'Notification' in window, isPermissionGranted: function () { return Notification.permission === 'granted'; }, requestPermission: function () { if (!this.isNotificationSupported) { console.log('当前浏览…