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: Added date to shared request URL content

Liyas Thomas163be1f1b58e
diff --git a/pages/index.vue b/pages/index.vue
index 4ed7d4569..6c7cbbd2c 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -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!');