fix it again

This commit is contained in:
mst 2025-03-11 15:51:45 +03:00
parent 2bd03b0013
commit 6a36b4897d
No known key found for this signature in database

View file

@ -261,6 +261,9 @@
function shareOnFediverse(questionId, contentToShare) { function shareOnFediverse(questionId, contentToShare) {
const instanceDomain = document.getElementById(`fediInstance`).value.trim(); const instanceDomain = document.getElementById(`fediInstance`).value.trim();
if (!instanceDomain) {
return;
}
const shareUrl = `https://${instanceDomain}/share?text=${contentToShare}`; const shareUrl = `https://${instanceDomain}/share?text=${contentToShare}`;
window.open(shareUrl, '_blank'); window.open(shareUrl, '_blank');