mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-05-04 05:29:15 -04:00
include Event 'file-received' for compatibility with Snapdrop for Android app
This commit is contained in:
parent
359010ae14
commit
8980c21297
2 changed files with 6 additions and 0 deletions
|
@ -431,6 +431,9 @@ class Peer {
|
|||
|
||||
this.sendJSON({type: 'file-transfer-complete'});
|
||||
|
||||
// include for compatibility with Snapdrop for Android app
|
||||
Events.fire('file-received');
|
||||
|
||||
const sameSize = fileBlob.size === acceptedHeader.size;
|
||||
const sameName = fileBlob.name === acceptedHeader.name
|
||||
if (!sameSize || !sameName) {
|
||||
|
|
|
@ -441,6 +441,9 @@ class Peer {
|
|||
|
||||
this.sendJSON({type: 'file-transfer-complete'});
|
||||
|
||||
// include for compatibility with Snapdrop for Android app
|
||||
Events.fire('file-received');
|
||||
|
||||
const sameSize = fileBlob.size === acceptedHeader.size;
|
||||
const sameName = fileBlob.name === acceptedHeader.name
|
||||
if (!sameSize || !sameName) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue