(message)
| 459 | } |
| 460 | |
| 461 | _downloadNotification(message) { |
| 462 | if (document.visibilityState !== 'visible') { |
| 463 | const notification = this._notify(message, 'Click to download'); |
| 464 | if (!window.isDownloadSupported) return; |
| 465 | this._bind(notification, e => this._download(notification)); |
| 466 | } |
| 467 | } |
| 468 | |
| 469 | _download(notification) { |
| 470 | document.querySelector('x-dialog [download]').click(); |
no test coverage detected