Skip to content

Commit

Permalink
fix: share on facebook only title
Browse files Browse the repository at this point in the history
  • Loading branch information
gion-andri committed Dec 4, 2023
1 parent 399f74b commit 3f1c2bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class EventDetailsComponent {

shareOnFacebook() {
const url = this.completeUrl(window.location.href);
const text = this.getEventDescriptionText(url);
const text = this.event!.title!;
window.open(`https://www.facebook.com/sharer/sharer.php?u=${url}&t=${encodeURIComponent(text)}`, '_blank');
}

Expand Down

0 comments on commit 3f1c2bc

Please sign in to comment.