Fix passed arguments for sharing text
This commit is contained in:
parent
34ebd60304
commit
10a0aaf896
2 changed files with 2 additions and 2 deletions
|
@ -137,7 +137,7 @@ const evaluateRequestData = async function (request) {
|
||||||
}
|
}
|
||||||
} else if (title?.length > 0 || text?.length > 0 || url?.length > 0) {
|
} else if (title?.length > 0 || text?.length > 0 || url?.length > 0) {
|
||||||
console.debug(title || text || url);
|
console.debug(title || text || url);
|
||||||
resolve(`/?share-target=text&title=${title}&text=${text}&url=${url}`);
|
resolve(`/?share-target=text${title ? `&title=${title}` : ''}${text ? `&text=${text}` : ''}${url ? `&url=${url}` : ''}`);
|
||||||
} else {
|
} else {
|
||||||
resolve('/');
|
resolve('/');
|
||||||
}
|
}
|
||||||
|
|
|
@ -137,7 +137,7 @@ const evaluateRequestData = async function (request) {
|
||||||
}
|
}
|
||||||
} else if (title?.length > 0 || text?.length > 0 || url?.length > 0) {
|
} else if (title?.length > 0 || text?.length > 0 || url?.length > 0) {
|
||||||
console.debug(title || text || url);
|
console.debug(title || text || url);
|
||||||
resolve(`/?share-target=text&title=${title}&text=${text}&url=${url}`);
|
resolve(`/?share-target=text${title ? `&title=${title}` : ''}${text ? `&text=${text}` : ''}${url ? `&url=${url}` : ''}`);
|
||||||
} else {
|
} else {
|
||||||
resolve('/');
|
resolve('/');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue