mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-20 15:06:15 -04:00
Fix URL when ShareTarget exists
This commit is contained in:
parent
5b2695a107
commit
aefe142eef
2 changed files with 3 additions and 1 deletions
|
@ -456,7 +456,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 : '';
|
shareTargetText += url ? shareTargetText ? ' ' + url : url : '';
|
||||||
|
if(!shareTargetText) return;
|
||||||
window.shareTargetText = shareTargetText;
|
window.shareTargetText = shareTargetText;
|
||||||
|
history.pushState({},'URL Rewrite','/');
|
||||||
console.log('Shared Target Text:', '"' + shareTargetText + '"');
|
console.log('Shared Target Text:', '"' + shareTargetText + '"');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
var CACHE_NAME = 'snapdrop-cache-v1.03';
|
var CACHE_NAME = 'snapdrop-cache-v1.04';
|
||||||
var urlsToCache = [
|
var urlsToCache = [
|
||||||
'/',
|
'/',
|
||||||
'/styles.css',
|
'/styles.css',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue