🐛 Fixed invinsible title

This commit is contained in:
Liyas Thomas
2019-09-05 17:09:03 +05:30
parent 163be1f1b5
commit 0816fc6682

View File

@@ -691,11 +691,10 @@
}, },
copyRequest() { copyRequest() {
if (navigator.share) { if (navigator.share) {
let title = document.title;
let time = new Date().toLocaleTimeString(); let time = new Date().toLocaleTimeString();
let date = new Date().toLocaleDateString(); let date = new Date().toLocaleDateString();
navigator.share({ navigator.share({
title: title, title: 'Postwoman • API request builder',
text: `at ${time} on ${date}`, text: `at ${time} on ${date}`,
url: window.location.href url: window.location.href
}).then(() => { }).then(() => {