⚡ Added date to shared request URL content
This commit is contained in:
parent
f246df572b
commit
163be1f1b5
1 changed files with 2 additions and 1 deletions
|
|
@ -693,9 +693,10 @@
|
|||
if (navigator.share) {
|
||||
let title = document.title;
|
||||
let time = new Date().toLocaleTimeString();
|
||||
let date = new Date().toLocaleDateString();
|
||||
navigator.share({
|
||||
title: title,
|
||||
text: time,
|
||||
text: `at ${time} on ${date}`,
|
||||
url: window.location.href
|
||||
}).then(() => {
|
||||
// console.log('Thanks for sharing!');
|
||||
|
|
|
|||
Loading…
Reference in a new issue