mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-21 23:36:17 -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 : '';
|
||||
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 + '"');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue