mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-17 23:02:15 +00:00
Move file creation to serviceworker to prevent loading everything into RAM
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user