snapdrop

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

commit aefe142eef5f4ecb22b90abfbbc20892dd3dfb06
parent 5b2695a10799f83e33fd661a6fce1babda6e53e3
Author: RobinLinus <robinlinus@users.noreply.github.com>
Date:   Wed, 13 Mar 2019 02:14:03 +0100

Fix URL when ShareTarget exists

Diffstat:
Mclient/scripts/ui.js | 2++
Mclient/service-worker.js | 2+-
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/client/scripts/ui.js b/client/scripts/ui.js @@ -456,7 +456,9 @@ class WebShareTargetUI { let shareTargetText = title ? title : ''; shareTargetText += text ? shareTargetText ? ' ' + text : text : ''; shareTargetText += url ? shareTargetText ? ' ' + url : url : ''; + if(!shareTargetText) return; window.shareTargetText = shareTargetText; + history.pushState({},'URL Rewrite','/'); console.log('Shared Target Text:', '"' + shareTargetText + '"'); } } diff --git a/client/service-worker.js b/client/service-worker.js @@ -1,4 +1,4 @@ -var CACHE_NAME = 'snapdrop-cache-v1.03'; +var CACHE_NAME = 'snapdrop-cache-v1.04'; var urlsToCache = [ '/', '/styles.css',