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

Method _onDrop

client/scripts/ui.js:170–178  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

168 }
169
170 _onDrop(e) {
171 e.preventDefault();
172 const files = e.dataTransfer.files;
173 Events.fire('files-selected', {
174 files: files,
175 to: this._peer.id
176 });
177 this._onDragEnd();
178 }
179
180 _onDragOver() {
181 this.$el.setAttribute('drop', 1);

Callers 1

_bindListenersMethod · 0.95

Calls 2

_onDragEndMethod · 0.95
fireMethod · 0.80

Tested by

no test coverage detected