snapdrop

A Progressive Web App for local file sharing
git clone http://git.hanabi.in/repos/snapdrop.git
Log | Files | Refs | README | LICENSE

commit f3e3f83f3f53a7d75eb7d95b46c9e91a9fbac79f
parent 288be1fa497f29fab3ab044b482853a487a0d20e
Author: RobinLinus <robinlinus@users.noreply.github.com>
Date:   Wed, 16 Dec 2020 06:15:25 +0100

Fix sharing link from Android phone

Diffstat:
Mclient/scripts/ui.js | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/client/scripts/ui.js b/client/scripts/ui.js @@ -473,7 +473,9 @@ class WebShareTargetUI { let shareTargetText = title ? title : ''; 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; window.shareTargetText = shareTargetText; history.pushState({}, 'URL Rewrite', '/');