mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-25 17:26:18 -04:00
remove title and text from navigator.share() to prevent iOS from generating additional image from text
This commit is contained in:
parent
24fdff8a8a
commit
c7ee067ef2
1 changed files with 0 additions and 5 deletions
|
@ -503,16 +503,13 @@ class ReceiveFileDialog extends ReceiveDialog {
|
|||
let description;
|
||||
let size;
|
||||
let filename;
|
||||
let shareTitle
|
||||
|
||||
if (files.length === 1) {
|
||||
shareTitle = "PairDrop File"
|
||||
description = files[0].name;
|
||||
size = this._formatFileSize(files[0].size);
|
||||
filename = files[0].name;
|
||||
url = URL.createObjectURL(files[0])
|
||||
} else {
|
||||
shareTitle = "PairDrop Files";
|
||||
let completeSize = 0
|
||||
for (let i=0; i<files.length; i++) {
|
||||
completeSize += files[0].size;
|
||||
|
@ -546,8 +543,6 @@ class ReceiveFileDialog extends ReceiveDialog {
|
|||
this.$shareOrDownloadBtn.innerText = "Share";
|
||||
this.continueCallback = async _ => {
|
||||
navigator.share({
|
||||
title: shareTitle,
|
||||
text: description,
|
||||
files: files
|
||||
}).catch(err => console.error(err));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue