(recipient)
| 320 | } |
| 321 | |
| 322 | _onRecipient(recipient) { |
| 323 | this._recipient = recipient; |
| 324 | this._handleShareTargetText(); |
| 325 | this.show(); |
| 326 | |
| 327 | const range = document.createRange(); |
| 328 | const sel = window.getSelection(); |
| 329 | |
| 330 | range.selectNodeContents(this.$text); |
| 331 | sel.removeAllRanges(); |
| 332 | sel.addRange(range); |
| 333 | |
| 334 | } |
| 335 | |
| 336 | _handleShareTargetText() { |
| 337 | if (!window.shareTargetText) return; |
no test coverage detected