mirror of
https://codeberg.org/catask-org/catask.git
synced 2025-04-19 21:33:41 -05:00
fix it again
This commit is contained in:
parent
2bd03b0013
commit
6a36b4897d
1 changed files with 3 additions and 0 deletions
|
@ -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');
|
||||||
|
|
Loading…
Add table
Reference in a new issue