mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-20 15:06:15 -04:00
Fix chromium filename by defaulting mime to "application/octet-stream"
This commit is contained in:
parent
b3c61f4baf
commit
a39d8cdc84
2 changed files with 5 additions and 5 deletions
|
@ -1082,7 +1082,7 @@ class PeersManager {
|
|||
}
|
||||
|
||||
async _onFilesSelected(message) {
|
||||
let files = mime.addMissingMimeTypesToFiles(message.files);
|
||||
let files = mime.addMissingMimeTypesToFiles([...message.files]);
|
||||
await this.peers[message.to].requestFileTransfer(files);
|
||||
}
|
||||
|
||||
|
@ -1306,9 +1306,8 @@ class FileDigester {
|
|||
const blob = new Blob(this._buffer)
|
||||
this._buffer = null;
|
||||
this._callback(new File([blob], this._name, {
|
||||
type: this._mime,
|
||||
type: this._mime || "application/octet-stream",
|
||||
lastModified: new Date().getTime()
|
||||
}));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue