()
| 410 | } |
| 411 | |
| 412 | _requestPermission() { |
| 413 | Notification.requestPermission(permission => { |
| 414 | if (permission !== 'granted') { |
| 415 | Events.fire('notify-user', Notifications.PERMISSION_ERROR || 'Error'); |
| 416 | return; |
| 417 | } |
| 418 | this._notify('Even more snappy sharing!'); |
| 419 | this.$button.setAttribute('hidden', 1); |
| 420 | }); |
| 421 | } |
| 422 | |
| 423 | _notify(message, body) { |
| 424 | const config = { |
no test coverage detected