mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-20 15:06:15 -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 description;
|
||||||
let size;
|
let size;
|
||||||
let filename;
|
let filename;
|
||||||
let shareTitle
|
|
||||||
|
|
||||||
if (files.length === 1) {
|
if (files.length === 1) {
|
||||||
shareTitle = "PairDrop File"
|
|
||||||
description = files[0].name;
|
description = files[0].name;
|
||||||
size = this._formatFileSize(files[0].size);
|
size = this._formatFileSize(files[0].size);
|
||||||
filename = files[0].name;
|
filename = files[0].name;
|
||||||
url = URL.createObjectURL(files[0])
|
url = URL.createObjectURL(files[0])
|
||||||
} else {
|
} else {
|
||||||
shareTitle = "PairDrop Files";
|
|
||||||
let completeSize = 0
|
let completeSize = 0
|
||||||
for (let i=0; i<files.length; i++) {
|
for (let i=0; i<files.length; i++) {
|
||||||
completeSize += files[0].size;
|
completeSize += files[0].size;
|
||||||
|
@ -546,8 +543,6 @@ class ReceiveFileDialog extends ReceiveDialog {
|
||||||
this.$shareOrDownloadBtn.innerText = "Share";
|
this.$shareOrDownloadBtn.innerText = "Share";
|
||||||
this.continueCallback = async _ => {
|
this.continueCallback = async _ => {
|
||||||
navigator.share({
|
navigator.share({
|
||||||
title: shareTitle,
|
|
||||||
text: description,
|
|
||||||
files: files
|
files: files
|
||||||
}).catch(err => console.error(err));
|
}).catch(err => console.error(err));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue