⚡ Added date to shared request URL content
This commit is contained in:
@@ -693,9 +693,10 @@
|
|||||||
if (navigator.share) {
|
if (navigator.share) {
|
||||||
let title = document.title;
|
let title = document.title;
|
||||||
let time = new Date().toLocaleTimeString();
|
let time = new Date().toLocaleTimeString();
|
||||||
|
let date = new Date().toLocaleDateString();
|
||||||
navigator.share({
|
navigator.share({
|
||||||
title: title,
|
title: title,
|
||||||
text: time,
|
text: `at ${time} on ${date}`,
|
||||||
url: window.location.href
|
url: window.location.href
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
// console.log('Thanks for sharing!');
|
// console.log('Thanks for sharing!');
|
||||||
|
|||||||
Reference in New Issue
Block a user