MCPcopy Index your code
hub / github.com/SnapDrop/snapdrop / constructor

Method constructor

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

Source from the content-addressed store, hash-verified

350
351class ReceiveTextDialog extends Dialog {
352 constructor() {
353 super('receiveTextDialog');
354 Events.on('text-received', e => this._onText(e.detail))
355 this.$text = this.$el.querySelector('#text');
356 const $copy = this.$el.querySelector('#copy');
357 copy.addEventListener('click', _ => this._onCopy());
358 }
359
360 _onText(e) {
361 this.$text.innerHTML = '';

Callers

nothing calls this directly

Calls 3

_onTextMethod · 0.95
_onCopyMethod · 0.95
onMethod · 0.80

Tested by

no test coverage detected