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

Method constructor

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

Source from the content-addressed store, hash-verified

228class ReceiveDialog extends Dialog {
229
230 constructor() {
231 super('receiveDialog');
232 Events.on('file-received', e => {
233 this._nextFile(e.detail);
234 window.blop.play();
235 });
236 this._filesQueue = [];
237 }
238
239 _nextFile(nextFile) {
240 if (nextFile) this._filesQueue.push(nextFile);

Callers

nothing calls this directly

Calls 2

_nextFileMethod · 0.95
onMethod · 0.80

Tested by

no test coverage detected