Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

:zap: Append time of sharing with content

Liyas Thomasf246df572b20
diff --git a/layouts/default.vue b/layouts/default.vue
index c5764b3b4..305089003 100644
--- a/layouts/default.vue
+++ b/layouts/default.vue
@@ -32,13 +32,12 @@
Install PWA
</button>
</div>
-
<!-- Bottom section of footer: version/author information -->
<p class="align-center">
<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">
- - <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 v-if="version.variant"> ({{ version.variant }})</span>
&#x2022; </span>by <a href="https://liyasthomas.web.app" target="_blank">Liyas Thomas 🦄</a>
diff --git a/pages/index.vue b/pages/index.vue
index 08d3e66a5..4ed7d4569 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -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!');