(message)
| 447 | } |
| 448 | |
| 449 | _messageNotification(message) { |
| 450 | if (document.visibilityState !== 'visible') { |
| 451 | if (isURL(message)) { |
| 452 | const notification = this._notify(message, 'Click to open link'); |
| 453 | this._bind(notification, e => window.open(message, '_blank', null, true)); |
| 454 | } else { |
| 455 | const notification = this._notify(message, 'Click to copy text'); |
| 456 | this._bind(notification, e => this._copyText(message, notification)); |
| 457 | } |
| 458 | } |
| 459 | } |
| 460 | |
| 461 | _downloadNotification(message) { |
| 462 | if (document.visibilityState !== 'visible') { |
no test coverage detected