Fix URL when ShareTarget exists

This commit is contained in:
RobinLinus 2019-03-13 02:14:03 +01:00
parent 5b2695a107
commit aefe142eef
2 changed files with 3 additions and 1 deletions

View file

@ -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 + '"');
}
}

View file

@ -1,4 +1,4 @@
var CACHE_NAME = 'snapdrop-cache-v1.03';
var CACHE_NAME = 'snapdrop-cache-v1.04';
var urlsToCache = [
'/',
'/styles.css',