Append time of sharing with content

This commit is contained in:
Liyas Thomas
2019-09-05 16:42:08 +05:30
parent a3463a6ac1
commit f246df572b
2 changed files with 6 additions and 4 deletions

View File

@@ -691,8 +691,11 @@
},
copyRequest() {
if (navigator.share) {
let title = document.title;
let time = new Date().toLocaleTimeString();
navigator.share({
title: document.title,
title: title,
text: time,
url: window.location.href
}).then(() => {
// console.log('Thanks for sharing!');