Fix sharing link from Android phone
This commit is contained in:
parent
288be1fa49
commit
f3e3f83f3f
|
@ -473,7 +473,9 @@ class WebShareTargetUI {
|
||||||
|
|
||||||
let shareTargetText = title ? title : '';
|
let shareTargetText = title ? title : '';
|
||||||
shareTargetText += text ? shareTargetText ? ' ' + text : text : '';
|
shareTargetText += text ? shareTargetText ? ' ' + text : text : '';
|
||||||
shareTargetText += url ? shareTargetText ? ' ' + url : url : '';
|
|
||||||
|
if(url) shareTargetText = url; // We share only the Link - no text. Because link-only text becomes clickable.
|
||||||
|
|
||||||
if (!shareTargetText) return;
|
if (!shareTargetText) return;
|
||||||
window.shareTargetText = shareTargetText;
|
window.shareTargetText = shareTargetText;
|
||||||
history.pushState({}, 'URL Rewrite', '/');
|
history.pushState({}, 'URL Rewrite', '/');
|
||||||
|
|
Loading…
Reference in New Issue