From 6a36b4897d7df94472ddc30b58bfe0bd1db5e988 Mon Sep 17 00:00:00 2001 From: mst Date: Tue, 11 Mar 2025 15:51:45 +0300 Subject: [PATCH] fix it again --- templates/index.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/index.html b/templates/index.html index 69f02ef..1662dd1 100644 --- a/templates/index.html +++ b/templates/index.html @@ -261,6 +261,9 @@ function shareOnFediverse(questionId, contentToShare) { const instanceDomain = document.getElementById(`fediInstance`).value.trim(); + if (!instanceDomain) { + return; + } const shareUrl = `https://${instanceDomain}/share?text=${contentToShare}`; window.open(shareUrl, '_blank');