⚡ Append time of sharing with content
This commit is contained in:
@@ -32,13 +32,12 @@
|
|||||||
Install PWA
|
Install PWA
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Bottom section of footer: version/author information -->
|
<!-- Bottom section of footer: version/author information -->
|
||||||
<p class="align-center">
|
<p class="align-center">
|
||||||
<span v-if="version.name">
|
<span v-if="version.name">
|
||||||
<a v-bind:href="'https://github.com/liyasthomas/postwoman/releases/tag/' + version.name">{{version.name }}</a>
|
<a v-bind:href="'https://github.com/liyasthomas/postwoman/releases/tag/' + version.name" target="_blank">{{version.name }}</a>
|
||||||
<span v-if="version.hash">
|
<span v-if="version.hash">
|
||||||
- <a v-bind:href="'https://github.com/liyasthomas/postwoman/commit/' + version.hash">{{ version.hash }}</a>
|
- <a v-bind:href="'https://github.com/liyasthomas/postwoman/commit/' + version.hash" target="_blank">{{ version.hash }}</a>
|
||||||
</span>
|
</span>
|
||||||
<span v-if="version.variant"> ({{ version.variant }})</span>
|
<span v-if="version.variant"> ({{ version.variant }})</span>
|
||||||
• </span>by <a href="https://liyasthomas.web.app" target="_blank">Liyas Thomas 🦄</a>
|
• </span>by <a href="https://liyasthomas.web.app" target="_blank">Liyas Thomas 🦄</a>
|
||||||
|
|||||||
@@ -691,8 +691,11 @@
|
|||||||
},
|
},
|
||||||
copyRequest() {
|
copyRequest() {
|
||||||
if (navigator.share) {
|
if (navigator.share) {
|
||||||
|
let title = document.title;
|
||||||
|
let time = new Date().toLocaleTimeString();
|
||||||
navigator.share({
|
navigator.share({
|
||||||
title: document.title,
|
title: title,
|
||||||
|
text: time,
|
||||||
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