MCPcopy
hub / github.com/SnapDrop/snapdrop / constructor

Method constructor

client/scripts/ui.js:314–320  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

312
313class SendTextDialog extends Dialog {
314 constructor() {
315 super('sendTextDialog');
316 Events.on('text-recipient', e => this._onRecipient(e.detail))
317 this.$text = this.$el.querySelector('#textInput');
318 const button = this.$el.querySelector('form');
319 button.addEventListener('submit', e => this._send(e));
320 }
321
322 _onRecipient(recipient) {
323 this._recipient = recipient;

Callers

nothing calls this directly

Calls 3

_onRecipientMethod · 0.95
_sendMethod · 0.95
onMethod · 0.80

Tested by

no test coverage detected