()
| 96 | } |
| 97 | |
| 98 | _initDom() { |
| 99 | const el = document.createElement('x-peer'); |
| 100 | el.id = this._peer.id; |
| 101 | el.innerHTML = this.html(); |
| 102 | el.ui = this; |
| 103 | el.querySelector('svg use').setAttribute('xlink:href', this._icon()); |
| 104 | el.querySelector('.name').textContent = this._displayName(); |
| 105 | el.querySelector('.device-name').textContent = this._deviceName(); |
| 106 | this.$el = el; |
| 107 | this.$progress = el.querySelector('.progress'); |
| 108 | } |
| 109 | |
| 110 | _bindListeners(el) { |
| 111 | el.querySelector('input').addEventListener('change', e => this._onFilesSelected(e)); |
no test coverage detected