mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-20 07:05:05 -04:00
Move file creation to serviceworker to prevent loading everything into RAM
This commit is contained in:
parent
ef3c338dad
commit
5ee8bb871e
3 changed files with 135 additions and 3 deletions
|
@ -1143,6 +1143,8 @@ class ReceiveFileDialog extends ReceiveDialog {
|
|||
navigator.share({files: files})
|
||||
.catch(err => {
|
||||
Logger.error(err);
|
||||
// Todo: tidy up, setDownloadButton instead and show warning to user
|
||||
// Differentiate: "File too big to be shared. It can be downloaded instead." and "Error while sharing. It can be downloaded instead."
|
||||
});
|
||||
|
||||
// Prevent clicking the button multiple times
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue